Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?

        int main()
        {
            int a = 4, n, i, result = 0;
            scanf("%d", n);
            for (i = 0;i < n; i++)
            result += a;
        }

  2. A.
    Addition of a and n.
    B.
    Subtraction of a and n.
    C.
    Multiplication of a and n.
    D.
    Division of a and n.

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    None.


Be The First To Comment