Computer Science, asked by durgaprasad94946, 10 months ago

Which of the following is the correct usage of conditional operators used in C? A)a>b ? c=30 : c=40; B)a>b ? c=30; C)max = a>b ? a>c?a:c:b>c?b:c D)return (a>b)?(a:b)

Answers

Answered by Anonymous
7

Answer:

a is the answer

Explanation:

Answered by tiger009
6

Option C is correct.

Explanation:

The following option is correct because it is the correct format of finding a greater number from among three through the ternary or conditional operator. These operators are those which are used mostly at the place of the if-else conditional statement.

  • Option B and Option D are the syntactically wrong statements.
  • Option A is wrong because the parentheses are not used in the ternary operator, it will be used in the if-else conditional statement.

Learn More:

https://brainly.in/question/7354763

Similar questions