Nguyễn Pháp
New member
What will be the output of the following C code?
A. Output will be program
B. Output will be p
C. No output
D. Compile-time error
Code:
#include <stdio.h>
int main()
{
char *a = {"p", "r", "o", "g", "r", "a", "m"};
printf("%s", a);
}
B. Output will be p
C. No output
D. Compile-time error