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 |
Is c++ a high level language?
Which compiler does turbo c++ use?
What is the difference between *p++ and (*p)++ ?
What is the difference between a baller and a reference in C++?
How is objective c different from c++?
What is RAII (Resource Acquisition Is Initialization)?
How much maximum can you allocate in a single call to malloc()?
What is the use of register keyword with the variables?
What are enumerations?
What is the function of I/O library in C++ ?
Can there be at least some solution to determine the number of arguments passed to a variable argument list function?
What are the new features that iso/ansi c++ has added to original c++ specifications?