Which of the following is not a valid declaration for main()

a) int main()

b) int main(int argc, char *argv[])

c) They both work


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

What are the differences between public, private, and protected access?

12 Answers   IBM, Oracle, Wipro,


Using a smart pointer can we iterate through a container?

0 Answers  


Can a constructor return a value?

0 Answers  


Why is polymorphism useful?

0 Answers  


What is protected inheritance?

0 Answers  






Difference between an inspector and a mutator

0 Answers  


Does c++ have foreach?

0 Answers  


What is difference between initialization and assignment?

12 Answers   HCL, HP, Infosys,


What is fixed in c++?

0 Answers  


#include<iostream.h> void main() { class x { public: int func(int) { cout<<"cool"; return 1; } } }

1 Answers   Infosys,


What is the difference between the compiler and the preprocessor?

0 Answers  


If a header file is included twice by mistake in the program, will it give any error?

0 Answers  


Categories