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 a Default constructor?
Write a Program to find the largest of 4 no using macros.
Why should we use null or zero in a program?
How do you decide which integer type to use?
what are Operators and explain with an example?
Which programming language should I learn first?
What is exception handling in C++?
How do I get good at c++ programming?
How do you define/declare constants in c++?
In a function declaration what does extern means?
What is the extension of c++?
Should the this pointer can be used in the constructor?