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

What is the use of register keyword with the variables?

943


What are the 2 main types of data structures?

1124


Which of the following is not a valid declaration for main() a) int main() b) int main(int argc, char *argv[]) c) They both work

1082


What is the difference between an array and a list?

1033


When does a name clash occur in c++?

1173


Is c or c++ more useful?

1052


Why do we need constructors in c++?

1112


Is facebook written in c++?

997


Is java made in c++?

1067


What is a container class? What are the types of container classes in c++?

1268


What is abstract class in c++?

1054


Should the this pointer can be used in the constructor?

1027


Define a nested class. Explain how it can be useful.

1084


What is c++ code?

1125


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

1247