[ create a new paste ] login | about

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

slevy1ster - C, pasted on Feb 20:
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdio.h>

int main( void)
{
  int a = 1;
  int c = a + a++;
  printf("%d\n",c); // int(3)

  int aa = 1;
  int cc = aa + aa + aa++;
  printf("%d\n",cc); // int(3)
  return 0;
}


Output:
1
2
2
3


Create a new paste based on this one


Comments: