19. What will be the output of following code :
// Assume all header files are included
int main()
{
void vpointer;
char cHar = g,*cHarpointer = GOOGLE;
int j = 40;
vpointer = &cHar;
printf("%c",*(char*)vpointer);
vpointer = &j;
printf("%d",*(int *)vpointer);
vpointer = cHarpointer;
printf("%s",(char*)vpointer +3);
}
A. 40
B. 100
C. ERROR
D. Warning
View Answer & Explanation
Ans. c
20. What will be the output of following code :
// Assume all header files are included
int main(){
int i = 5, j = 4;
if(!printf(""))
printf("%d %d", i, j);
else
printf("%d %d", i++, ++j);
return 0;
}
A. 5 5
B. 5 4
C. 5 6
D. 6 6
View Answer & Explanation
Ans. b
