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
How do you find out if a linked-list has an end?
What is c strings syntax?
Differentiate between realloc() and free().
what Is DCS ? what i will get benefit when i did?
What are the operators in c++?
What are move semantics?
What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor
Which is the best c++ compiler for beginners?
What is different in C++, compare with unix?
What is an incomplete type in c++?
Write a Program for dynamically intialize a 2 dimentional array. Eg:5x20, accept strings and check for vowels and display the no.finally free the space allocated .
what are the iterator and generic algorithms.
What is do..while loops structure?
What is an accessor in c++?
What is the word you will use when defining a function in base class to allow this function to be a polimorphic function?