Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?

    void foo();
    int main()
    {
    void foo();
    foo();
    return 0;
    }
    void foo()
    {
    printf("2 ");
    }
  2. A.
    Compile time error
    B.
    2
    C.
    Depends on the compiler
    D.
    Depends on the standard

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    None.


Be The First To Comment