Multiple choice

void main() { int a= 100; void *j= &a; int *k= j; printf("%u", *k); }

  1. Runtime error

  2. Compiler error

  3. Garbage value

  4. Address

  5. 100

Reveal answer Fill a bubble to check yourself
E Correct answer
Explanation

Void pointer can hold address of any data type without type casting. Any pointer can hold void pointer without type casting. This program prints the result = 100.