C++ Programming - Functions - Discussion
Discussion Forum : Functions - General Questions (Q.No. 5)
5.
Which of the following statement will be correct if the function has three arguments passed to it?
Discussion:
29 comments Page 1 of 3.
ANKIT MISTRI said:
3 years ago
Default argument must be written in rightmost side of the argument list.
Why? Explain with reason.
Why? Explain with reason.
Sakshi said:
5 years ago
Only the trailing arguments can have default values and therefore we must add default values form right-to-left.
Riya Joshi said:
6 years ago
Why default argument must be written on the right most side of the argument list?
Please Explain.
Please Explain.
Priya said:
7 years ago
Trailing argument means?
Abhyuday said:
7 years ago
In function we can make all arguments as default, what about that?
Jhuma biswas said:
7 years ago
By seeing different arguments I become confused which one is right answer. I can't learn anything. It became too much confusing as well as I am losing the reliability.
Abbishek Rajh said:
7 years ago
Is it so that all arguments to be a default?
Mandy said:
7 years ago
One more important point is that [D] will be also a correct answer because all arguments of a function will be default arguments.
Sonu said:
9 years ago
What is trailing argument with the help of example?
G AKHIL said:
9 years ago
One important point to note is that only the trailing arguments can have default value and therefore we must add defaults from right to left.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers