Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?

    int main()
    {
    int i = 10;
    void *p = &i;
    printf("%f\n", *(float*)p);
    return 0;
    }
  2. A.
    Compile time error
    B.
    Undefined behaviour
    C.
    10
    D.
    0.000000

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    None.


Be The First To Comment