Consider the following C program segment. #include int main() { char sl[7] = “1234”, *p; p = sl + 2; *p = ‘0’; printf (“%s”, s1); } What will be printed by the program?
12
120400
1204
1034
Correct Option: C
After *P = '0', array will become and we are pointing string S which is 1204.