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);
            {
                x = 4;
            }
            printf("%d", x);
        }
  2. A.
    Run time error
    B.
    3   3
    C.
    3   5
    D.
    3   4

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    None


Be The First To Comment