Sail E0 Webinar
Question
What would be the output for the following Turbo C code?
#include
void main()
{
int a[]={ 1, 2, 3, 4, 5 }, *p;
p=a;
++*p;
printf("%d ", *p);
p += 2;
printf("%d", *p);
}
Options:
A .  2 4
B .  3 4
C .  2 2
D .  2 3
E .  3 3
Answer: Option D

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