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 / sachinmundhra

This will not get compile.

int i , a[i] ; // This statement will given error. Constant
expression required.

Is This Answer Correct ?    38 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is pointer -to-members in C++? Give their syntax?

1024


What do you mean by “this” pointer?

1070


Can we use struct in c++?

1016


Explain differences between alloc() and free()?

1128


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

4116


Where can I run c++ program?

1064


Is map ordered c++?

1089


What doescout<<(0==0) print out a) 0 b) 1 c) Compiler error: Lvalue required

966


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

1061


Can a program run without main in c++?

1199


What is microsoft c++ redistributable 2013?

1099


Explain the scope of resolution operator.

1102


Explain Memory Allocation in C/C++ ?

1060


Do class method definitions?

1038


Explain the pure virtual functions?

1117