hello guys,
I came across a strange thing when doing program in c++ in visualc++ environment.just run this code and after entering the array elements press up arrow and down arrow.
Here's the code
#include<iostream.h>
void main()
{
int arr[5];
cout<<"Enter the array elements : "<<endl;
for(int i=0;i<5;i++)
cin>>arr;
cout<<"\n\n";
for(i=0;i<5;i++)
{
cout<<"The element no."<<i<<" is "; \\PRESS THE DIRECTION KEYS NOW
cin>>arr;
}
cout<<"\n\n";
}