A

Admin • 833K Points
Coach

Q. What is the output?

Code:
int x = 2 * 3 + 4;
printf("%d", x);
  • (A) 10
  • (B) 14
  • (C) 6
  • (D) 7
  • Correct Answer - Option(A)
  • Views: 31
  • Filed under category C Programming
  • Hashtags:

Explanation by: Admin

Multiplication has higher precedence: 2*3 + 4 = 6 + 4 = 10.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.