Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?

        int x = 5;
        void main()
        {
            int x = 3;
            printf("%d", x);
            {
                int x = 4;
            }
            printf("%d", x);
        }
  2. A.
    3  3
    B.
    3  4
    C.
    3  5
    D.
    Run time error

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    None.


Be The First To Comment