1 votes 1 votes 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 Programming in C programming-in-c pointers + – Anurag_s asked Oct 18, 2015 Anurag_s 575 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes http://stackoverflow.com/questions/21809389/changing-constant-stringsc99 Tendua answered Oct 18, 2015 Tendua comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes If contents of string constant is modified, the behavior is undefined in C. monanshi answered Oct 18, 2015 monanshi comment Share Follow See all 0 reply Please log in or register to add a comment.