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

How the programmer of a class should decide whether to declare member function or a friend function?

1116


What is the full form of dos?

1146


What do nonglobal variables default to a) auto b) register c) static

1148


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

1364


What is std :: flush?

1057


What does catch(…) mean?

1111


What is c++ virtual inheritance?

1130


What is #include sstream?

1061


What is an iterator?

1189


How many types of scopes are there in c++?

1099


What is cout flush?

1026


Differentiate between the manipulator and setf( ) function?

1189


What are the two types of comments?

993


If I is an integer variable, which is faster ++i or i++?

1060


What is encapsulation in C++? Give an example.

1088