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...

how does a main() in C++ is different from main() in C?

Answer Posted / jit

In C if we write a program like
int main()
{
static int i = 5;
if (--i){
printf("%d ", i);
main(10);
}
}

It works but not in C++

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).

2126


What is encapsulation process?

1056


What is multilevel inheritance explain with example?

1155


What is difference between abstraction and encapsulation?

1087


any one please tell me the purpose of operator overloading

2401


write a program that takes input in digits and display the result in words from 1 to 1000

2433


hi all..i want to know oops concepts clearly can any1 explain??

2143


What is stream in oop?

1305


What is constructor in oop?

1121


What is the significance of classes in oop?

1163


Why it is called runtime polymorphism?

1144


What is multilevel inheritance in oop?

1044


What are properties in oop?

1095


what is graphics

2470


What is persistence in oop?

1152