GATEverse
← GATE CSE 2015 Set 3

Q7

MCQ1 mark, −0.33

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?

Sign in to save attempts.

Loading…