Home / CSE MCQs / C++ - MCQs :: Discussion

Discussion :: C++ - MCQs

  1. Which of the following correctly declares an array?
  2. A.
    int array[10];
    B.
    int array;
    C.
    array{10};
    D.
    array array[10];

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    Because array variable and values need to be declared after the datatype only.


Be The First To Comment