Skip to content

Instantly share code, notes, and snippets.

@nibasya
Created May 12, 2018 07:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nibasya/9555c8cecfa8897381316422092e5bee to your computer and use it in GitHub Desktop.
Save nibasya/9555c8cecfa8897381316422092e5bee to your computer and use it in GitHub Desktop.
An example of code including 2 increments in a line
#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