GATEverse Practice, past papers & mock tests
GATE 2015 · Set-3
Programming & Data StructuresArrayseasyMCQ1 mark
Consider the following C program segment.
c
#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?
Save your progress

Related Programming & Data Structures PYQs