C++ Programming - Functions - Discussion

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

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

Harsh said:   6 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:   7 years ago
How it is?


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

Post your comments here:

Your comments will be displayed after verification.