[ create a new paste ] login | about

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

C, pasted on Dec 6:
1
2
3
4
5
6
7
8
9
10
11
12
int main(void)
{
  int i = 0; 
  int result; 
  result = 10 + ++i; 
  printf("%d \n", result); // = 11 
 
  int j = 0; 
  result = 10 + j++; 
  printf("%d \n", result);// = 10
  return 0;
}


Output:
1
2
11 
10 


Create a new paste based on this one


Comments: