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

Write a short code using c++ to print out all odd number from 1 to 100 using a for loop

972


How to tokenize a string in c++?

1002


What are the advantages of c++ over c?

1013


What is difference between class and function?

1028


What is an operator function? Describe the function of an operator function?

1065


why is c++ called oops? Explain

985


Explain rethrowing exceptions with an example?

978


What are the characteristics of friend functions?

967


what is data encapsulation in C++?

1009


Does c++ vector allocate memory?

942


Are strings mutable in c++?

1089


Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement

1097


Explain the use of virtual destructor?

1025


How can we access protected and private members of a class?

1052


Can malloc be used in c++?

1025