Which of the following parameter passing mechanism is/are supported by C++ but not in C?
Arsal Alam is saying Pass by reference is correct answer
Katreen Ebraheem from Egypt is saying Pass by reference is correct answer
Husna Qasim is saying All of the above is correct answer
Anc Patel is saying Pass by value is correct answer
indhuja indhuja from Erode, India is saying All of the above is correct answer
- [A] int Function(int Tmp = Show());
- [B] float Function(int Tmp = Show(int, float));
- [C] Both A and B.
- [D] float = Show(int, float) Function(Tmp);
- [A] int Sum(int a, int b = 2, int c = 3);
- [B] int Sum(int a = 5, int b);
- [C] int Sum(int a = 0, int b, int c = 3);
- [D] Both B and C are incorrect.
- [E] All are correct.
- [A] Overloaded functions can have at most one default argument.
- [B] An overloaded function cannot have default argument.
- [C] All arguments of an overloaded function can be default.
- [D] A function if overloaded more than once cannot have default argument.