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?

Answers were Sorted based on User's Feedback



int main() { int i ,a[i]; i = 0; a[i] = 10; cout<< a[i] << endl; return 0; } ..

Answer / ram

main method cannot return any value.

Is This Answer Correct ?    6 Yes 28 No

Post New Answer

More C++ General Interview Questions

How many namespaces are there in c++?

0 Answers  


What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack

0 Answers  


How many static variables are created if you put one static member into a template class definition?

0 Answers  


Explain virtual destructor?

0 Answers  


What is enum class in c++?

0 Answers  


How can you tell what shell you are running on unix system?

0 Answers  


Do inline functions improve performance?

0 Answers  


What is an associative container in c++?

0 Answers  


What is conversion constructor?

2 Answers   TCS,


Why do we use templates?

0 Answers  


How do you find out if a linked-list has an end? (I.e. The list is not a cycle)

0 Answers  


What is the use of volatile variable?

0 Answers  


Categories