Examveda
Examveda

What will be the output of the following C code?
#include <stdio.h>
int main()
{
    char *p[1] = {"hello"};
    printf("%s", (p)[0]);
    return 0;
}

A. Compile time error

B. Undefined behaviour

C. hello

D. None of the mentioned

Answer: Option C


This Question Belongs to C Program >> Pointer

Join The Discussion

Related Questions on Pointer