can output 5 students using one dimensional array
Answer Posted / 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 |
Post New Answer View All Answers
Explain the concept of dynamic allocation of memory?
What does ctime() do?
Is oops and c++ same?
Is nan a c++?
What is struct c++?
What is a breakpoint?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
Is it possible for a member function to use delete this?
What are friend functions in C++?
What are the advantages of using pointers in a program?
Why do we learn c++?
What are the two types of comments?
What are the differences between new and malloc?
What are the various operations performed on stack?
What is srand c++?