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 you find out if a linked-list has an end?

1120


What is c strings syntax?

1140


Differentiate between realloc() and free().

1045


what Is DCS ? what i will get benefit when i did?

2353


What are the operators in c++?

1114


What are move semantics?

1148


What function initalizes variables in a class: a) Destructor b) Constitutor c) Constructor

1144


Which is the best c++ compiler for beginners?

1090


What is different in C++, compare with unix?

1093


What is an incomplete type in c++?

1273


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 .

1143


what are the iterator and generic algorithms.

2154


What is do..while loops structure?

1143


What is an accessor in c++?

1068


What is the word you will use when defining a function in base class to allow this function to be a polimorphic function?

1167