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 is the use of turbo c++?
What is the use of class in c++?
What is a constant? Explain with an example.
Why do we learn c++?
What is the use of ::(scope resolution operator)?
When is a template better solution than a base class??
What are the advantages of c++? Explain
Can you write a function similar to printf()?
Explain rethrowing exceptions with an example?
Define whitespace in C++.
Is there a new/delete equivalent of realloc?
What do you mean by persistent and non persistent objects?