Expressions – Yes / No Questions

1. Are the following two statement same?

1. a <= 20 ? (b = 30): (c = 30);
2. (a <=20) ? b : (c = 30);

A. Yes
B. No

Correct Answer: B. No

2. Two different operators would always have different Associativity.

A. Yes
B. No

Correct Answer: B. No

3. Will the expression *p = p be disallowed by the compiler?

A. Yes
B. No

Correct Answer: B. No

4. Every operator has an Associativity

A. Yes
B. No

Correct Answer: A. Yes

Leave A Comment?

2 × 5 =