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 endianness?
What does iomanip mean in c++?
In which memory a class gets stored(in heap /in stack)? And why??
Explain pass by value and pass by reference.
What does h mean in maths?
What is a string example?
Write about the scope resolution operator?
What is the purpose of extern storage specifier?
Can malloc be used in c++?
In C++ cout is: a) object b) class c) something else
11 Answers Infosys, Lehman Brothers,
What is #include c++?
Write a function that swaps the values of two integers, using int* as the argument type?