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 / mohammed afroz

There are compile time error in this program. Because array
can declare with a constant value.

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between delete and free.

1031


Arrange Doubly linked list in the ascending order of its integral value and replace integer 5 with 7?

4077


What does floor mean in c++?

1028


Explain the extern storage classes in c++.

1008


Explain linked list using c++ with an example?

1030


Why do we need constructors in c++?

1070


Can a Structure contain a Pointer to itself?

1079


Write about the role of c++ in the tradeoff of safety vs. Usability?

1017


How would you obtain segment and offset addresses from a far address of a memory location?

1036


What's the "software peter principleā€?

1102


What is cin clear () in c++?

1141


What is rvalue?

1093


Out of fgets() and gets() which function is safe to use and why?

1147


You run a shell on unix system. How would you tell which shell are you running?

1126


Define a constructor?

1009