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