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 / sachinmundhra

This will not get compile.

int i , a[i] ; // This statement will given error. Constant
expression required.

Is This Answer Correct ?    38 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c++ low level?

1078


Can we use struct in c++?

1074


Are strings mutable in c++?

1198


Why ctype h is used in c++?

995


How to give an alternate name to a namespace?

1131


Explain function overloading

1060


How do you compile the source code with your compiler?

1106


What is the function to call to turn an ascii string into a long?

1123


What is the purpose of template?

1170


What are the advantages of using pointers in a program?

1194


What do you mean by early binding?

1133


How come you find out if a linked-list is a cycle or not?

1086


On throwing an exception by the animal constructor in p = new animalq, can memory leak occur?

1189


Which of the following is evaluated first: a) && b) || c) !

2421


What will happen if a pointer is deleted twice?

1252