What will be the output of the following program?
#include <iostram.h>
void main()
{
int a[5] ={0, 3, 4, 2, 1};
int b[5]= {0};
int n =4;
for ( int i=0; i<=n;++i)
b[a[i]]=a[i];
cout<< b[0]<<b[1]<<b[2]<<b[3}<<b[4];
}
Answers
Answered by
0
Output seems to be: 01234
AnkithaNair:
how?
Answered by
0
01234. is the output
Similar questions