Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?

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

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    None.


Be The First To Comment