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...

int main()
{
int i ,a[i];
i = 0;
a[i] = 10;
cout<< a[i] << endl;
return 0;


}

What will be output of this program?

Answer Posted / ramesh kumar

in array we can must enter size integer...
not as variable type like i
thats why it gives an error

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you link a c++ program to c functions?

1105


What does new do in c++?

1074


How is modularity introduced in C++?

1213


What does std mean in c++?

1126


Does c++ have string data type?

1106


What header file is needed for exit(); a) stdlib.h b) conio.h c) dos.h

1056


What is buffer and example?

1012


Can we define a constructor as virtual in c++?

1129


Why is "using namespace std;" considered bad practice?

1100


Can I have a reference as a data member of a class? If yes, then how do I initialise it?

1230


Explain virtual destructor?

1201


What is the use of string in c++?

1029


Describe new operator?

1163


How to get the current position of the file pointer?

1049


Why is main an int?

992