Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How do I get good at c++ programming?

1182


Write a function that swaps the values of two integers, using int* as the argument type?

1038


What is operators in c++?

1017


What do you mean by early binding?

1074


Are c and c++ different?

1000


What is struct c++?

1010


What is time h in c++?

1142


Write about the retrieval of n number of objects during the process of delete[]p?

1028


What is pointer to array in c++?

1180


What do you understand by pure virtual function? Write about its use?

1007


How to access a variable of the structure?

1098


What do you mean by late binding?

1137


Do class declarations end with a semicolon?

1092


What you know about structures in C++?

1092


Why main function is special in c++?

1139