Strings - Programming

Q1:

What will be the output of the program ?
#include<stdio.h>
#include<string.h>

int main()
{
    printf("%c\n", "abcdefgh"[4]);
    return 0;
}

A Error

B d

C e

D abcdefgh

ANS:C - e

printf("%c\n", "abcdefgh"[4]); It prints the 5 character of the string "abcdefgh". Hence the output is 'e'.