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 |
Using a smart pointer can we iterate through a container?
How java is different from c and c++?
1.what is the difference between software & package &application.
How to avoid changing constant values?
What are friend functions in C++?
What is flag in computer?
How to create a reference variable in C++
What is an incomplete type in c++?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create
Describe new operator?
What is a constructor initializer list and when we use constructor initializer list?
Write a program in c++ to print the numbers from n to n2 except 5 and its multiples