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:
30 comments Page 1 of 3.
Henry said:
2 years ago
Yes, it is confusing, but basically says the default argument can't be from right to left which is A.
ANKIT MISTRI said:
5 years ago
Default argument must be written in rightmost side of the argument list.
Why? Explain with reason.
Why? Explain with reason.
(1)
Sakshi said:
7 years ago
Only the trailing arguments can have default values and therefore we must add default values form right-to-left.
(2)
Riya Joshi said:
8 years ago
Why default argument must be written on the right most side of the argument list?
Please Explain.
Please Explain.
Priya said:
9 years ago
Trailing argument means?
(1)
Abhyuday said:
9 years ago
In function we can make all arguments as default, what about that?
Jhuma biswas said:
9 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:
10 years ago
Is it so that all arguments to be a default?
Mandy said:
10 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:
1 decade ago
What is trailing argument with the help of example?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers