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:   6 years ago
Default argument only allowed in the parameter list of fuction.
(1)

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.
(1)

Pooja said:   7 years ago
How it is?

Explain.

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.