can main method be overloaded...???
How..????

Answer Posted / ravindranath m

you can overload the main method, but only one version
should exist.

1. int main(void) { ... }

2. int main (int argc, char** argv) { ... }

Is This Answer Correct ?    22 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can an interface inherit a class?

565


Why we use classes in oop?

583


What is overloading in oops?

598


What is static modifier?

634


Can we create object of interface?

609






i got a backdoor offer in process global,Bangalore..Can i work with it?

2328


Why do we use polymorphism?

579


What is class encapsulation?

597


What is encapsulation oop?

578


What makes a language oop?

598


How is class defined?

588


What polymorphism means?

624


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.

6487


How can you overcome the diamond problem in inheritance?

770


to find out the minimum of two integer number of two different classes using friend function

1645