consider following code segment in c
main()
{
char * z="abc";
z[0]='x';
printf("%s",z);
}
what will be behavior of the program
a>compiler error b>runtime error c>no error prints xbc
d>no error prints abc
64.3k questions
77.9k answers
244k comments
80.0k users