Consider the following C program segment.
# include <stdio.h>
int main( )
{
char s1[7] = "1234", *p;
p = s1 + 2;
*p = '0' ;
printf ("%s", s1);
}
What will be printed by the program?
12
120400
1204
1034
This question is part of this quiz :
C String,GATE-CS-2015 (Set 3),50 C Language MCQs with Answers,C Programming PYQs GATE CS,Pointers GATE CS PYQ Quiz