Examveda
Examveda

What will be the output of the following C code?
#include <stdio.h>
int main()
{
    char *a = {"p", "r", "o", "g", "r", "a", "m"};
    printf("%s", a);
}

A. Output will be program

B. Output will be p

C. No output

D. Compile-time error

Answer: Option B


This Question Belongs to C Program >> Pointer

Join The Discussion

Related Questions on Pointer