[ create a new paste ] login | about

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

C, pasted on Feb 10:
1
2
3
4
5
6
7
8
9
10
11
#include <stdio.h>
int main(int argc, char *argv[])
{
    int i=8;
    /*printf("%d,%d,%d,%d\n",i--, --i, i++, i++);*/
    printf("%d\n",i--);
    printf("%d\n",--i);
    printf("%d\n",i++);
    printf("%d\n",i++);
    return 0;
}


Output:
1
2
3
4
8
6
6
7


Create a new paste based on this one


Comments: