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;
            m();
            printf("%d", x);
        }
        void m()
        {
            x = 8;
            n();
        }
        void n()
        {
            printf("%d", x);
        }

  2. A.
    8   3
    B.
    8   5
    C.
    3   8
    D.
    5   3

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    None.


Be The First To Comment