Q. What will be the output of the following statements ?

Code:
int a=5,b=6,c=9,d; d=(ac?1:2):(c>b?6:8)); printf(“%d”,D.;
  • (A) 1
  • (B) 2
  • (C) 6
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (D) Error

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
227
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
95%
Success Rate