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 function prototypes?
Explain how we implement exception handling in c++?
What does the nocreate and noreplace flag ensure when they are used for opening a file?
Write any small program that will compile in "C" but not in "C++"
What is scope resolution operator in c++ with example?
What is the role of copy constructor in copying of thrown objects?
Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?
i have given a project to create examination seating plan system in c++. so can anyone send me the answer of this question quickly??????
What is ostream in c++?
What are the manipulators in c++?
What is the limitation of cin while taking input for character array?
Difference between class and structure.