C++ Programming - Functions - Discussion

Discussion Forum : Functions - General Questions (Q.No. 16)
16.
Which of the following function / types of function cannot have default parameters?
Member function of class
main()
Member function of structure
Both B and C
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
4 comments Page 1 of 1.

Mohit said:   5 years ago
Default argument only allowed in the parameter list of fuction.

Harsh said:   5 years ago
Using argc and argv? Those will pass an argument from the command line to your program. You can't really use default arguments.

Pooja said:   6 years ago
How it is?

Explain.

Shantanu.madane said:   8 years ago
Can anyone tell me the reason for this?

Post your comments here:

Your comments will be displayed after verification.