[ create a new paste ] login | about

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

C, pasted on Dec 13:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include<stdio.h>
int main() { 

int *p,a[5]={10,20,30,40,50};
p=a;

printf("%d\n",++*p);
printf("%d\n",++*p++);
printf("%d\n",*p);
printf("%d\n",*p--);
printf("%d\n",--*p++);
printf("%d\n",(*p)--);
printf("%d\n",*p++);
//printf("%d d\n",--++--*p--,*p);
printf("%d\n",*p);
printf("%d\n",--*p,*p);

return 0;
}


Output:
1
2
3
4
5
6
7
8
9
11
12
20
20
11
20
19
30
29


Create a new paste based on this one


Comments: