?
What will be the output of the following program?
What will be the output of the following program?
#include<stdio.h>
void main()
{
int i = 10;
void *p = &i;
printf("%d\n", (int)*p);
}
#include<stdio.h>
void main()
{
int i = 10;
void *p = &i;
printf("%d\n", (int)*p);
}
Answer & Solution
Correct Answer:
Option
A
p is pointer of type void.
Join the Discussion
Login to post a comment or share your explanation.
Login*(int*)p;//in printf