HCL
Company
Programming
Program
3) How can a call to an overloaded function be ambiguous?
(a) By misspelling the name (b) There might be two or more functions with the same name
(c)There might be two or more functions with equally appropriate signatures
(d)None of these
Read Solution (Total 17)
-
- c is correct.
- 10 years agoHelpfull: Yes(12) No(1)
- the answer is option c. that is there might be two or more functions with equally appropriate signatures.
- 9 years agoHelpfull: Yes(4) No(2)
- c is correct answer
- 9 years agoHelpfull: Yes(2) No(2)
- B CHECK GEEKS FOR GEEKS NOOBS
- 7 years agoHelpfull: Yes(2) No(1)
- b-method overloading
- 10 years agoHelpfull: Yes(1) No(3)
- b is correct answer
- 10 years agoHelpfull: Yes(1) No(3)
- b== for overloading same name and different parameters exist.
- 10 years agoHelpfull: Yes(1) No(3)
- Option B (The same function is defined more than once)
- 9 years agoHelpfull: Yes(1) No(2)
- B) is correct becoz, OVERLOADING == func with Same name bt differnt no of parameters or signature or diff type of para..
wen any 1 of these condition fails it is ambiguous - 9 years agoHelpfull: Yes(1) No(1)
- (c)There might be two or more functions with equally appropriate signatures
- 9 years agoHelpfull: Yes(0) No(3)
- b is correct for function overloading
- 8 years agoHelpfull: Yes(0) No(1)
- C
Because ambiguous is depends on parameter - 7 years agoHelpfull: Yes(0) No(0)
- (b) is correct answer.
reason is:-
as in multiple inheritance in c++, when derived class contain same name function as that of base class then, compiler gets confused to choose which function and that creates ambiguity due to the same name. - 7 years agoHelpfull: Yes(0) No(1)
- c , if two or more function with appropriate signature it occurs the ambiguity for function call. the caller function get confused which function called first.
- 6 years agoHelpfull: Yes(0) No(0)
- ANS - A) by misspellinng the name
- 4 years agoHelpfull: Yes(0) No(0)
- b is correct
- 4 years agoHelpfull: Yes(0) No(0)
- idk
because i just dk - 4 years agoHelpfull: Yes(0) No(0)
HCL Other Question