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 solid in oops?

597


What is advantage of inheritance?

685


What is an advantage of polymorphism?

588


Can an interface inherit a class?

553


What are the types of abstraction?

551






What is polymorphism and its types?

588


Why oops is important?

599


What is abstraction in oop?

625


What is destructor example?

591


Why do we use polymorphism in oops?

575


What are classes oop?

594


Is abstract thinking intelligence?

590


How to improve object oriented design skills?

565


What are the important components of cohesion?

550


What is for loop and its syntax?

592