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
Advertisement

2. Two different operators would always have different Associativity.

A. Yes
B. No

Correct Answer: B. No
Advertisement

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

A. Yes
B. No

Correct Answer: B. No
Advertisement

4. Every operator has an Associativity

A. Yes
B. No

Correct Answer: A. Yes
Advertisement

Leave A Comment?