Created
May 12, 2018 07:57
-
-
Save nibasya/9555c8cecfa8897381316422092e5bee to your computer and use it in GitHub Desktop.
An example of code including 2 increments in a line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int Sum1(const int in) { | |
printf("Sum1 input=%d\n", in); | |
return in; | |
} | |
int Sum2(const int in) { | |
printf("Sum2 input=%d\n", in); | |
return in; | |
} | |
int main() | |
{ | |
int p = 0; | |
int sum; | |
char buff[128]; | |
sum = Sum1(p++) + Sum2(p++); | |
printf("sum=%d p=%d\n", sum, p); | |
gets_s(buff, 127); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment