can output 5 students using one dimensional array



can output 5 students using one dimensional array..

Answer / hari haran

#include<iostream.h>
void main()
{
int a[5];
for(int i=0;i<n;i++)
{
cin>>a[i];
}
for(int i=0;i<n;i++)
{
cout<<"
"<<a[i];
}
}

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More C++ General Interview Questions

Is c++ primer good for beginners?

0 Answers  


Why do we use the using declaration?

0 Answers  


How static variables and local variablesare similar and dissimilar?

0 Answers  


What is searching?

0 Answers  


What is an iterator class in c++?

0 Answers  






Which software is best for programming?

0 Answers  


How do you import payscale data from non SAP to SAP?is it through LSMW or any other way is there?

0 Answers  


How the keyword struct is different from the keyword class in c++?

0 Answers  


What is setw manipulator in c++?

0 Answers  


What is a hashmap c++?

0 Answers  


Why do we learn c++?

0 Answers  


write infinite loop in C++ which does not use any variable or constant?

3 Answers  


Categories