expected output:11111 and what i got is:1Code:#include <iostream>#include <string> using namespace std; int main() { int a[3]={0,1,2}; for(int i=0; i<=5 ; i++) ; { cout<<a[1];} }
istead of printing five 1,s it producing single 1.help me to figure out what is going on.thank you in advance