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 do you mean by Encapsulation?
What exactly is polymorphism?
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
How do you explain polymorphism?
What is the real life example of polymorphism?
What is the main purpose of inheritance law?
Can main method override?
What is difference between abstraction and encapsulation?
What are the features of oop?
What is a superclass in oop?
#include
What makes a language oop?
What is encapsulation example?
write a programe to calculate the simple intrest and compund intrest using by function overlading
Why is polymorphism important in oop?