Specifically, overloading involves
A. | one function with a variety of arguments |
B. | multiple functions defined with the same name |
C. | one function with multiple names |
D. | multiple functions with different names. |
Option: B Explanation : Click on Discuss to view users comments. |
A. |
Number operator » (istream & in, Number &num)
|
B. |
istream & operator » (istream & in, const Number & num)
|
C. |
friend istream & operator» (istream & in, Number & num)
|
D. |
istream & operator » (istream & in, Number &num)
|
Option: C Explanation : Click on Discuss to view users comments. |
A. | cin >>a |
B. | cin >> a,b |
C. | Both (a) and (b) |
D. | None of these |
Option: A Explanation : Click on Discuss to view users comments. |
Assume num = 8; the value of expression num++ is
A. | 7 |
B. | 8 |
C. | 9 |
D. | Impossible to tell |
Option: C Explanation : Click on Discuss to view users comments. |