Sail E0 Webinar
Question

What would be the output of the following?
#include<iostream.h>
void main()
{
char *ptr=“abcd”
char ch;
ch = ++*ptr++;

cout<<ch;
}


Options:
A .  a
B .  b
C .  c
D .  d
Answer: Option B




Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers