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 to tokenize a string in c++?

1017


Difference between an inspector and a mutator

1291


Can we run c program in turbo c++?

1050


Does c++ vector allocate memory?

958


What is pointer in c++ with example?

1032


What is polymorphism & list its types in c++?

1026


Specify different types of decision control statements?

820


Explain method of creating object in C++ ?

1048


If there are two catch statements, one for base and one for derived, which should come first?

1002


What is a null object in c++?

1172


How much is c++ certification?

1009


Which is the best c++ compiler?

1004


What is an arraylist c++?

1172


What is the disadvantage of using a macro?

1067


Explain about vectors in c ++?

978