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 / ramesh kumar

in array we can must enter size integer...
not as variable type like i
thats why it gives an error

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can c++ do everything c can?

1157


how to connect with oracle 9i with server in socket program in c/c++

2397


What is the function to call to turn an ascii string into a long?

1120


What is object in c++ wikipedia?

1063


When should you use global variables?

1280


Differentiate between a template class and class template in c++?

1141


Do vectors start at 0?

1046


How a macro differs from a template?

1221


What is the latest c++ version?

1153


Explain the register storage classes in c++.

1229


Why is "using namespace std;" considered bad practice?

1143


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

1181


Can you be able to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?

1159


Is c++ low level?

1074


Tell me difference between constant pointer and pointer to a constant.

1274