C Programming :: Basic Concepts - Discussion
Home > C Programming > Basic Concepts > MCQs Questions Discussion
21 / 90
What is the output of the following 'C' program ?
#include<stdio.h>
void main()
{
printf("%c", "abcdefgh"[4]);
}
#include<stdio.h>
void main()
{
printf("%c", "abcdefgh"[4]);
}
AError
Be
Cd
Dabcdefgh
Answer: Option (Login/Signup)
Show Explanation
Hence, the output is e.
Asked In ::
STEP-BY-STEP
printf("%c","abcdefgh"[4]);............simply means the character at 4th index should be displayed.
Hence, the output is e.
Read Full Answer
Report Error
Please Login First Click Here