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 |
What are the two types of comments?
Comment on assignment operator in c++.
Define virtual constructor.
What is meant by the term name mangling in c++?
What is a flag in c++?
which of the following is not an secondary constant a) array b) real c) union
What is the difference between structures and unions?
Differentiate between realloc() and free().
What is optimization in c++? when using volatile.optimization is not possible..what does this mean?
Is rust better than c++?
How is static data member similar to a global variable?
Explain about templates of C++.