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

What is polymorphism give a real life example?

755


What is object in oop with example?

945


Why it is called runtime polymorphism?

777


What are the 4 pillars of oop?

881


What is purpose of inheritance?

836


What is debug class?what is trace class? What differences are between them? With examples.

1842


How to hide the base class functionality in Inheritance?

836


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

1879


design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

6350


Why is encapsulation used?

754


What is encapsulation selenium?

745


What is an example of genetic polymorphism?

859


What is polymorphism programming?

832


What are the two different types of polymorphism?

874


How do you achieve runtime polymorphism?

736