- 5
What is the output of given C++ code? Int n[4] {22,14} ; cout<<n[3];
C++
3 RĂ©ponses
+ 1
kamoyak
Output will be 0 because the size of array is 4 so array will store 22, 14, 0, 0
int a[4] = {22, 14};
cout << a[2]; //0
+ 3
Okay. Thanks alot đđ
+ 1
n[0]=22
n[1]=14
n[2]=0
n[3]=0