#include <stdio.h> int main(void) { // your code goes here char str[] = "Nagpur"; str[0]='K'; str = "Kanpur"; return 0; }
Standard input is empty
prog.c: In function ‘main’: prog.c:8:9: error: assignment to expression with array type str = "Kanpur"; ^
Standard output is empty