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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / kishore kumar naik p

Ravindranath,

You have forgot another one

1. int main(void) { ... }
2. int main (int argc, char** argv) { ... }
3. void main(int argc, char ** argv, char** environment)

Is This Answer Correct ?    5 Yes 1 No

Post New Answer

More OOPS Interview Questions

difference between overloading and overridding

11 Answers  


What is deep and shalow copy?

3 Answers   L&T, TCS,


What is oops and its features?

0 Answers  


What is a linked list?

7 Answers   IBM, Neural Info,


diff between Virtual mathod and abstract method?

1 Answers  






#include <iostream> using namespace std; struct wow { int x; }; int main() { wow a; a.x = 22; int c = a.x; int *b = new int; cout << c; return 0; } option: No output 0 22 -(11) Will not compile

1 Answers   CTS, Wipro,


Difference between over loading and over ridding?

12 Answers   CTS, Patni, Softvision Solution,


How do you use inheritance in unity?

0 Answers  


when my application exe is running nad i don't want to create another exe what should i do

2 Answers   HCL,


Write an operator overloading program to write S3+=S2.

2 Answers  


Can java compiler skips any statement during compilation time?

0 Answers  


What is polymorphism give a real life example?

0 Answers  


Categories