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

What is a Default constructor?

1 Answers  


Write a Program to find the largest of 4 no using macros.

0 Answers  


Why should we use null or zero in a program?

0 Answers  


How do you decide which integer type to use?

0 Answers  


what are Operators and explain with an example?

0 Answers  


Which programming language should I learn first?

0 Answers  


What is exception handling in C++?

1 Answers  


How do I get good at c++ programming?

0 Answers  


How do you define/declare constants in c++?

0 Answers  


In a function declaration what does extern means?

0 Answers   Flextronics,


What is the extension of c++?

0 Answers  


Should the this pointer can be used in the constructor?

0 Answers  


Categories