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

Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.

1003


What is data hiding c++?

993


What is c++ try block?

989


What are the stages in the development cycle?

983


What are the basic data types used in c++?

994


Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.

1264


What is #include iostream in c++?

997


What are its advantages and disadvantages of multiple inheritances (virtual inheritance)?

1137


Explain rethrowing exceptions with an example?

975


What is the main use of c++?

1057


What is pointer to array in c++?

1078


What are c++ tokens?

993


How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?

1034


What is singleton class in c++?

982


What is singleton pattern in c++?

917