adplus-dvertising
frame-decoration

Question

If an array is declared as
int a[4] = {3, 0, 1, 2}, then values assigned to a[0] & a[4] will be ________.

a.

3, 2

b.

0, 2

c.

3, 0

d.

0, 4

Answer: (c).3, 0

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. If an array is declared as int a[4] = {3, 0, 1, 2}, then values assigned to a[0] & a[4] will be ________.

Similar Questions

Discover Related MCQs

Q. Mechanism of deriving a class from another derived class is known as____

Q. RunTime Polymorphism is achieved by ______

Q. A function call mechanism that passes arguments to a function by passing a copy of the values of the arguments is __________

Q. In C++, dynamic memory allocation is accomplished with the operator ____

Q. If we create a file by ‘ifstream’, then the default mode of the file is _________

Q. A variable defined within a block is visible

Q. The break statement causes an exit

Q. Which of the following cannot be legitimately passed to a function

Q. A property which is not true for classes is that they

Q. You can read input that consists of multiple lines of text using

Q. The keyword friend does not appear in

Q. The process of building new classes from existing one is called

Q. If you wanted to sort many large objects or structures, it would be most efficient to

Q. A friend function to a class, C cannot access

Q. The operator that cannot be overloaded is

Q. A struct is the same as a class except that

Q. Pure virtual functions

Q. Additional information sent when an exception is thrown may be placed in

Q. Use of virtual functions implies

Q. this pointer