Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. Comment on the output of this C code?

        int main()
        {
            int i, n, a = 4;
            scanf("%d", &n);
            for (i = 0; i < n; i++)
                a = a * 2;
        }
  2. A.
    Logical Shift left
    B.
    No output
    C.
    Arithmetic Shift right
    D.
    bitwise exclusive OR

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    None.


Be The First To Comment