Chapter 16 Flashcards

1
Q

What is function overloading and operator overloading

A

C++ allows you to specify more than one definition for a function name or an operator in the same scope, which is called function overloading and operator overloading respectively.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is ?:

A

?: is the only ternary operator in C++ and can’t be overloaded.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Can operator precedence effected due to overloading

A

No

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Can overloading effect Associativity

A

No

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Unary operators and assignment operator are right associative. True or False

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly