[ create a new paste ] login | about

Link: http://codepad.org/DEiJdbwC    [ raw code | output | fork ]

C, pasted on Nov 22:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdio.h>

int main () {

int a,b,c;
a=1;
b=2;
c=3;

printf("a+b+c=%d\n",a + b + c++);
c=3;
printf("a+b+c=%d",a + b + ++c);

return 0;
}


Output:
1
2
a+b+c=6
a+b+c=7


Create a new paste based on this one


Comments: