What is the output of the following 3D Array
int arr[3][2][2]={1,2,3,4,5,6,7,8,9,10,11,12};
what is the output for arr[2][1][0]?

Answer Posted / arpita

ans-0 [3][2][2]={1,2,3,4,5,6,7,8,9,10,11,12}
[2][1][0]={0}
3*2*2=12
2*1*0=0
think hatke...

Is This Answer Correct ?    9 Yes 29 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the iunknown interface?

680


Define a nested class. Explain how it can be useful.

636


How do we implement inheritance in c++?

589


What is the role of copy constructor in copying of thrown objects?

602


Can we distribute function templates and class templates in object libraries?

595






Describe protected access specifiers?

677


What are vectors used for in c++?

625


In c++, what is the difference between method overloading and method overriding?

603


Explain the difference between realloc() and free() in c++?

537


What is type of 'this' pointer? Explain when it is get created?

591


What are the advantages of using pointers in a program?

681


What is virtual table?

626


What is buffering in c++?

588


Is there any difference between int [] a and int a [] in c++?

555


Can you be able to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?

625