Q:
What will be output of following program ?
#include
int main()
{
int a = 10;
void *p = &a;
int *ptr = p;
printf("%u",*ptr);
return 0;
}
Answer & Explanation
Answer: A) 10
Explanation: Void pointer can hold address of any data type without type casting. Any pointer can hold void pointer without type casting.
View Answer
Report Error
Discuss