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 |
wap to accept 10 numbers & display the number of odd and even numbers??
why we cant create array of refrences
Enter n no. of element and delete value from desire position
Is c++ an oop?
How do we implement inheritance in c++?
Define Virtual function in C++.
What is conversion constructor?
What are the various oops concepts in c++?
Difference between overloaded functions and overridden functions
Explain abstraction.
Can I learn c++ without learning c?
What are proxy objects?