C/C++ : Question-1
Let us discuss about some of the Interview questions based on C and C++.
Here is my first question.
1) Can we pass arguments to main() in C. What is the need to pass arguments to the main()? And what happens when we pass arguments to main()? Any example?
Here goes my answer :
A- Yes, we can pass arguments to main() in C. The arguments passed to main() are called command line arguments.
But, I dont know the need. Anyone can answer this question.
And lets discuss about that.