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 |
Why do we use double in c++?
In which memory a class gets stored(in heap /in stack)? And why??
What is the difference between a shallow copy and a deep copy?
What is the best book for c++ beginners?
given the code segment below void main() { cout<<"my no. is"; } question is how can we get the output hai aravind my no. is 99999999999 without editig the main().
Which is best c++ or java?
Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?
Is nan a c++?
What is a map in c++?
What does I ++ mean in c++?
What is a storage class in C++
Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?