πŸ“Š C Programming
Q. 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)
πŸ’¬ Discuss
βœ… Correct Answer: (C) max = a>b ? a>c?a:c:b>c?b:c

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
179
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Indresh Gehalot
Publisher
πŸ“ˆ
90%
Success Rate