[ create a new paste ] login | about

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

C, pasted on Jul 10:
1
2
3
4
5
6
7
8
9
#include<stdio.h>
int main(int argc, char **argv){
	char *str[] = {"forgs", "do", "not", "die"};
        char a[] = "Hello";
        str[0] = a;
        str[0][2] = 'A';
  printf("%s\n", str[0]);
	return 0;
}


Output:
1
HeAlo


Create a new paste based on this one


Comments: