can output 5 students using one dimensional array
Answer Posted / 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 View All Answers
How to tokenize a string in c++?
Difference between an inspector and a mutator
Can we run c program in turbo c++?
Does c++ vector allocate memory?
What is pointer in c++ with example?
What is polymorphism & list its types in c++?
Specify different types of decision control statements?
Explain method of creating object in C++ ?
If there are two catch statements, one for base and one for derived, which should come first?
What is a null object in c++?
How much is c++ certification?
Which is the best c++ compiler?
What is an arraylist c++?
What is the disadvantage of using a macro?
Explain about vectors in c ++?