The output I expected was:
alpha
beta
I used the following code:
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
char choice[2][5]={"alpha","beta"};
cout<<choice[0]<<endl;
cout<<choice[1];
getch();
}
But this is what comes:
alphabeta
beta
Can anyone tell me what I did wrong? Thank you.
P.S.:I know I am not using standard c++, but this is how we have to do in school.