in Education by

Which of the following correctly declares an array in C++?
a) array{10};
b) array array[10];
c) int array;
d) int array[10];

1 Answer

0 votes
by

Answer: d
Explanation: Because array variable and values need to be declared after the datatype only.

Related questions

0 votes
    Which of the following is used to terminate the function declaration in C++? a) ; b) ] c) ) d) :...
asked Oct 19, 2022 in Education by JackTerrance
0 votes
    What will be the output of the following C++ code? #include using namespace std; int main () { int cin; cin ... fault b) Nothing is printed c) Error d) cin: garbage value...
asked Oct 19, 2022 by JackTerrance
0 votes
    Which keyword is used to define the macros in c++? a) #macro b) #define c) macro d) define...
asked Oct 19, 2022 in Education by JackTerrance
0 votes
    Which is more effective while calling the C++ functions? a) call by object b) call by pointer c) call by value d) call by reference...
asked Oct 19, 2022 in Education by JackTerrance
0 votes
    What is the use of the indentation in c++? a) r distinguishes between comments and inner data b) distinguishes ... and code d) r distinguishes between comments and outer data...
asked Oct 19, 2022 in Education by JackTerrance
0 votes
    What is the size of wchar_t in C++? a) Based on the number of bits in the system b) 2 or 4 c) 4 d) 2...
asked Oct 19, 2022 in Education by JackTerrance
0 votes
    Which of these sentences use uppercase letters correctly? (a) I am Hungry (b) She lives in Delhi. (c) The ... and sunil are reading. Select the correct answer from above options...
asked Dec 21, 2021 in Education by JackTerrance
0 votes
    Which of these interface declares core method that all collections will have? (a) set (b) EventListner (c) ... Framework of Java Select the correct answer from above options...
asked Mar 1, 2022 in Education by JackTerrance
0 votes
    Which of these interface declares core method that all collections will have? (a) set (b) EventListner (c ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which is the correct way to create an array in JavaScript? I) var myProg = []; II) var myArray = ["C","Java","C++","Python"]; III) ... 1. I, III 2. II, III 3. I, II 4. I, II & III...
asked Feb 24, 2021 in Technology by JackTerrance
0 votes
    I have an array in C, let's suppose it's **arr = malloc(100 * sizeof(char*)); through ... questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 7, 2022 in Education by JackTerrance
0 votes
    I have an array in C, let's suppose it's **arr = malloc(100 * sizeof(char*)); through ... questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 26, 2022 in Education by JackTerrance
+1 vote
    Define an array in C Programming?...
asked Nov 9, 2020 in Technology by JackTerrance
...