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

Index variable of any array should be integer constant.
but in this case i is not constant so it is a error

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between strcpy() and strncpy()?

1078


Explain the difference between c & c++?

1027


Which is best c++ or java?

1045


What does new return if there is insufficient memory to make your new object?

984


Can you use the function fprintf() to display the output on the screen?

1204


Is map ordered c++?

1055


What operator is used to access a struct through a pointer a) >> b) -> c) *

1061


Explain virtual destructor?

1128


What does it mean to declare a member variable as static?

1014


What do you mean by inheritance in c++? Explain its types.

1071


What are default parameters? How are they evaluated in c++ function?

1135


What is an inclusion guard?

1122


What do you mean by function overriding & function overloading in c++?

1110


What is polymorphism & list its types in c++?

1020


Is python better than c++?

986