how does a main() in C++ is different from main() in C?
Answer Posted / vishal palan
In C the main() does not return any value by default. But in C++ the main() returns value int by default.
Again
In U can complie progm by writing main(){....}
But in C++ u have to return int main() {...return 0;}
or void main() {...}
| Is This Answer Correct ? | 16 Yes | 13 No |
Post New Answer View All Answers
Why do while loop is used?
What is static modifier?
write a C++ program for booking using constructor and destructor.
Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?
Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.
What are different oops concepts?
What is class and example?
i got a backdoor offer in process global,Bangalore..Can i work with it?
What are two types of polymorphism?
just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.
What is the renewal class?
What is polymorphism in oop example?
What is overloading in oop?
is there any choice in opting subjects like 4 out of 7
What is persistence in oop?