(Solved):1) What is the output of the following C++ code? int []={3,6,9}; cout less than less than *(i+1); a) 4 b) 3 c) 6 d) 0x7f3e5029254c i.e. some hexadecimal memory address 2) What is the output of th… View Answer…

 

Question

Consider below array definition to predict the output.

int i[]={3,6,9};

Use these options to answer the following questions:

a) 4

b) 3

c) 6

d) 0x7f3e5029254c //i.e. some hexadecimal memory address

Q.1) cout << *(i+1);
Q.2) cout << (i+1);
Q.3) cout << *&i;

 

EXPERT ANSWER

These kind of question can be approached by looking closer to what exactly is

Scroll to top