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 are the different data types present in C++?
what are the iterator and generic algorithms.
What are the sizes and ranges of the basic c++ data types?
What are shallow and deep copies?
What is a container class? What are the types of container classes in c++?
What are the uses of pointers?
Which of the Standard C++ casts can be used to perform a ?safe? downcast: a) reinterpret_cast b) dynamic_cast c) static_cast d) const_cast
What is a buffer c++?
What is code reusability in c++?
Is there a c++ certification?
What c++ is used for?
Define whitespace in C++.