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 do you mean by inheritance in c++?

0 Answers  


How do you find out if a linked-list has an end? (I.e. The list is not a cycle)

0 Answers  


Tell me an example where stacks are useful?

0 Answers  


Should I learn c++ c?

0 Answers  


Explain the use of virtual destructor?

0 Answers  






What is static function and static class?

4 Answers   HCL,


List different attributes in C++?

0 Answers   Ericsson,


If all is successful, what should main return a) 0 b) 1 c) void

0 Answers  


How can I disable the "echo" feature?

0 Answers  


What are the characteristics of friend functions?

0 Answers  


Why is c++ awesome?

0 Answers  


What is one dimensional array in c++?

0 Answers  


Categories