Examveda
Examveda

What will be the output of the following C code?
#include <stdio.h>
void main()
{
    char s[] = "hello";
    s++;
    printf("%c\n", *s);
}

A. Compile time error

B. h

C. e

D. o

Answer: Option A


This Question Belongs to C Program >> Pointer

Join The Discussion

Related Questions on Pointer