[ create a new paste ] login | about

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

C, pasted on Oct 17:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include<stdio.h>


void main()
{

	int myarr[5]={1,2,3,4,5};


       printf("%d\n",0[myarr]);
       printf("%d\n",myarr[1]);
       printf("%d\n",*myarr+2);
       printf("%d\n",*myarr+3);
       printf("%d\n",4[myarr]);


}


Output:
1
2
3
4
5
1
2
3
4
5


Create a new paste based on this one


Comments: