Top

Discussion

What is the output of this C code?

#include 
    int main()
    {
        int i = 10;
        void *p = &i;
        printf("%f\n", *(float*)p);
        return 0;
    }

 

  • A.Compile time error
  • B.Undefined behaviour
  • C.10
  • D.0.000000

Answer: D

No answer description available for this question.

No comment is present. Be the first to comment.
Loading…

Post your comment