Skip to content

Instantly share code, notes, and snippets.

@nibasya
Created May 12, 2018 04:54
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/7047b9ead360f30aed1ba882264cfea0 to your computer and use it in GitHub Desktop.
Save nibasya/7047b9ead360f30aed1ba882264cfea0 to your computer and use it in GitHub Desktop.
Example of code including 2 increments in a line
#include <stdio.h>
int Sum(const int in) {
printf("input=%d\n", in);
return in;
}
int main()
{
int p = 0;
int sum;
char buff[128];
sum = Sum(p++) + Sum(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