[ create a new paste ] login | about

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

C, pasted on Mar 24:
1
2
3
4
5
6
7
8
9
10
11
12
#include<stdio.h>
int main()
{
int i=10,j=20;
int *p=&i;
int *q=&j;
int c=p-q;
printf("%d\n", p);
printf("%d\n", q);
printf("%d", c);
return 0;
}


Output:
1
2
3
-1083846364
-1083846368
1


Create a new paste based on this one


Comments: