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 is pure virtual function? Or what is abstract class?

0 Answers  


Can you use the function fprintf() to display the output on the screen?

0 Answers  


What are the unique features of C++.

0 Answers  


C++ program output? Explain output of this program. #include <iostream> using std::cout; using std::cin; int main() {   cout<<cout<<' ';   cout<<cin;   return 0; } It prints some address in hexadecimal. what is it?

1 Answers  


Is set c++?

0 Answers  






How delete [] is different from delete?

0 Answers  


Should I learn c or c++ or c#?

0 Answers  


Explain the virtual inheritance in c++.

0 Answers  


How should runtime errors be handled in c++?

0 Answers  


What is "mutable" keyword?

2 Answers   Infosys, Teradata,


How is computer programming useful in real life?

0 Answers  


Explain terminate() function?

0 Answers  


Categories