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

Is it possible to have a recursive inline function in c++?

1030


What are manipulators in c++ with example?

1066


How does work in c++?

1080


What is oop in c++?

1083


What is a multiset c++?

1151


List the advantages of inheritance.

1134


What is the difference between an enumeration and a set of pre-processor # defines?

1391


Distinguish between a # include and #define.

1151


What is the use of register keyword with the variables?

943


When there is a global variable and local variable with the same name, how will you access the global variable?

1101


What is a literal in c++?

1101


Give example of a pure virtual function in c++?

1174


Specify different types of decision control statements?

857


Why should we use null or zero in a program?

1042


What is split a string in c++?

1188