What will be the result of the following program?
		
					

Loading

โœช Choose the correct option.

What will be the result of the following program?


#include
#include
char *gxxx(){
static char xxx[1024];
return xxx;
}
int main(){
char *g="string";
strcpy(gxxx(),g);
g = gxxx();
strcpy(g,"oldstring");
printf("The string is : %s",gxxx());
return 0;
}

A. The string is: string
B. The string is: Oldstring
C. Run time error/Core dump
D. Syntax error during compilation