Sail E0 Webinar
Question
What will be the output of the following program?
#include
void main()
{
int i = 10;
void *p = &i;
printf("%d\n", (int)*p);
}
Options:
A .  Compiler time error
B .  Segmentation fault/runtime crash
C .  10
D .  Undefined behavior
Answer: Option A

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