Q:

Output is

0

Output is

#include <stdio.h>
    int main()
    {
        int i = 10;
        void *p = &i;
        printf("%d\n", (int)*p);
        return 0;
    }

  1. Segmentation fault/runtime crash
  2. Compile time error
  3. 20
  4. Undefined Behaviour

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Correct Answer:

Compile time error

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now
Which is an indirection operator among the followi... >>
<< Prior to using a pointer variable it should be...