Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?

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

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    None.


Be The First To Comment