Q. c = (n) ? a : b; can be rewritten asexp1 ? exp2 : exp3;

  • (A) if(n){c = b;}else{c = a;}
  • (B) if(n){c = a;}else{c = b;}
  • (C) if(!n){c = a;}else{c = b;}
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) if(n){c = a;}else{c = b;}

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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