A

Admin • 833K Points
Coach

Q. What is the value of “y” in this code?

Code:
#include <stdio.h>

void main()
{
int y = 5.3 % 2;
printf("The value of y is %d", y);
}
  • (A) The value of y is 0,3
  • (B) The value of y is 1
  • (C) The value of y is 2,3
  • (D) Compilation error
  • Correct Answer - Option(D)
  • Views: 20
  • Filed under category C Programming
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.