1 2 3 4 5 6 7
#include<stdio.h> int main(){ char str2[] = "hello"; str2[] = "world"; str2 = "world"; return 1; }
1 2 3
In function 'main': Line 4: error: expected expression before ']' token Line 5: error: incompatible types in assignment