Vidyalelo
Data Structure · Q162

Arrays in Data Structures

Programming · Data Structure · question 162

Q162

Consider the following piece of code in C++, how many elements will be stored in the array 'arr' if the user enters the values of a, b, c and d as 10, 20, 30, and 40 respectively? #include using namespace std; int main() int a, b, c, d; cout >a>>b>>c>>d; int arr[a - b/c + d];

A.
30
B.
40
C.
50
Answer
D.
60

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board