Created
May 12, 2018 04:55
-
-
Save nibasya/cf184889ca7c4405d5fa53df8576da41 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 main() | |
{ | |
int p = 0; | |
int sum; | |
char buff[128]; | |
sum = (p++) + (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