[ create a new paste ] login | about

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

C, pasted on Dec 20:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include<stdio.h>
int main()
{
     char a[] = "hello";
     char b[] = "world";

     char *ptr1 = a;
     char *ptr2 = b;

     ptr1 = ptr2;

     printf("[%s]",a);
     return 0;

}


Output:
1
[hello]


Create a new paste based on this one


Comments: