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

Why #include is used?

1120


Where is atoi defined?

1209


What is the full form of india?

1209


What information can an exception contain?

1209


Explain how the virtual base class is different from the conventional base classes of the opps.

1214


Is swift faster than c++?

1072


How to declare a function pointer?

1044


What are the four main data types?

1139


What do you know about near, far and huge pointer?

1222


Differentiate between a constructor and a method in C++.

1119


What operator is used to access a struct through a pointer a) >> b) -> c) *

1165


What is difference between class and function?

1154


Which function should be used to free the memory allocated by calloc()?

1072


What is == in programming?

1092


declare an array of structure where the members of the structure are integer variable float variable integer array char variable access all elements of the structure using dot operator and this pointer operator

2408