[ create a new paste ] login | about

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

C, pasted on Oct 21:
1
2
3
4
5
6
7
8
#include<stdio.h>
int main() {
    int a = 1;
    printf("a=%d\n",a+a++);
    a = 1;
    printf("a=%d\n",a+a+a++);
    return 0;
}


Output:
1
2
a=2
a=3


Create a new paste based on this one


Comments: