#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?
A.) 12
B.) 120400
C.) 1204
D.) 1034
Answer: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?
A.) 12 B.) 120400 C.) 1204 D.) 1034
Explanation: The array s1 have four entities: s0=1, s1=2,s2=3,s3=4.