Home / CSE MCQs / C-MCQs :: Discussion

Discussion :: C-MCQs

  1. What is the output of this C code?

    int main()
    {
    int var = 010;
    printf("%d", var);
    }
  2. A.
    2
    B.
    8
    C.
    9
    D.
    10

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    010 is octal representation of 8.


Be The First To Comment