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

What is the types of inheritance?

0 Answers  


is java purely oop Language?

49 Answers   HCL, Infosys, TCS,


In multilevel inheritance constructors will be executed from the .... class to ... class

2 Answers   ABCO, TCS,


c++ provides classes...and classes do what we want but why then strcut are used...if we say data hiding... it is also provided by c++ in structs then why to prefer clasess

1 Answers   HCL, TCS,


What is difference between oop and pop?

0 Answers  






Definition of Object Oriented Programming in single line?

33 Answers   Impact Systems, Q3 Technologies, TCS,


Write a program in c++ to read two floating point numbers and find their sum and average.

2 Answers  


What is Method overloading?

5 Answers  


I am DeePu sotware engineer working with EMC corporation ,recently I had attended mcafee interview . Their questions were at heights of stupidity , I don't know what they want , I am a developer with 4 year experienced .I am listing the questions asked 1:What is the flag in g++ to avoid structure padding 2:In wht order parameters are passed to stack 3:How you will edit code segment of an exe

1 Answers  


create a c++ program that will ask 10 numbers and display their sum using array.

1 Answers  


what is the difference between function template and template of function?explain with example.

2 Answers  


what type of question are asked in thoughtworks pair programming round ?

0 Answers   Thought Works,


Categories