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
What is polymorphism give a real life example?
What is object in oop with example?
Why it is called runtime polymorphism?
What are the 4 pillars of oop?
What is purpose of inheritance?
What is debug class?what is trace class? What differences are between them? With examples.
How to hide the base class functionality in Inheritance?
hi all..i want to know oops concepts clearly can any1 explain??
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
Why is encapsulation used?
What is encapsulation selenium?
What is an example of genetic polymorphism?
What is polymorphism programming?
What are the two different types of polymorphism?
How do you achieve runtime polymorphism?