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 object and class in oops?
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)
How do you use inheritance in unity?
What is abstraction with example?
What are the important components of cohesion?
What is polymorphism and why is it important?
What do you mean by variable?
What is abstraction encapsulation?
What is oops concept with example?
What language is oop?
Why do we need polymorphism in c#?
What does and I oop mean?
What is a function in oop?
What is pointer in oop?
What is polymorphism what are the different types of polymorphism?