- #1
Tonauac
int a[10];
for(int i=0;i<55;i++)
cin>>a; ///this will store 55 elements however the size
////of the array is 10
and also prints it out
for(i=0;i<55;i++)
cout<<a;
How it is possilble.....and if it is ok...then what is the use of mentioning the size of an array in c/c++
for(int i=0;i<55;i++)
cin>>a; ///this will store 55 elements however the size
////of the array is 10
and also prints it out
for(i=0;i<55;i++)
cout<<a;
How it is possilble.....and if it is ok...then what is the use of mentioning the size of an array in c/c++