Question: Given: int * A [ 3 ] ; for ( int i = 0 ; i 3 ; i + + A [ i ]

Given:
int *A[3];
for (int i=0;i3;i++
A[i]= new int [4];
cout &A[2][2]-&A[][2];
What is the output of the above code segment?
a.8
b.6
c.4
d.2
e. The above code segment has a compiler error
f. None of the mentioned
 Given: int *A[3]; for (int i=0;i3;i++ A[i]= new int [4]; cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!