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

What is virtual function? Explain with an example

1030


What do you mean by translation unit in c++?

1276


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

1048


Why is c++ is better than c?

905


What is c++ manipulator?

928


How can we read/write Structures from/to data files?

1062


Why do we use constructor?

996


Is c# written in c++?

921


Tell me difference between constant pointer and pointer to a constant.

1105


Why null pointer is used?

994


What is a class definition?

1007


Explain explicit container.

1032


Write about a nested class and mention its use?

1043


Explain queue. How it can be implemented?

1101


What is the advantage of c++ over c?

967