[ create a new paste ] login | about

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

C, pasted on Jul 5:
1
2
3
4
5
6
7
#include<stdio.h>
int main(){
 char str2[] = "hello";
 str2[] = "world";
 str2 = "world"; 
 return 1; 
}


Output:
1
2
3
In function 'main':
Line 4: error: expected expression before ']' token
Line 5: error: incompatible types in assignment


Create a new paste based on this one


Comments: