Home » C Programming » Pointers » Question
  1. What will be the output of the following C code?
     #include <stdio.h>
    int main()
    {
    int num = 110;
    void *ptr = #
    printf("%f\n", *(float*)ptr);
    return 0;
    }
    1. 110
    2. Undefined behaviour
    3. Garbage value
    4. Compilation Error
    5. 0.000000
Correct Option: E

0.000000



Your comments will be displayed only after manual approval.