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 do I get good at c++ programming?
Write a function that swaps the values of two integers, using int* as the argument type?
What is operators in c++?
What do you mean by early binding?
Are c and c++ different?
What is struct c++?
What is time h in c++?
Write about the retrieval of n number of objects during the process of delete[]p?
What is pointer to array in c++?
What do you understand by pure virtual function? Write about its use?
How to access a variable of the structure?
What do you mean by late binding?
Do class declarations end with a semicolon?
What you know about structures in C++?
Why main function is special in c++?