A

Admin • 833K Points
Coach

Q. What is the output of the C program with Modulo Division operator with - or Negative numbers.?

Code:
int main()
{
int a = -25%-10;
int b = -25%10;
int c = 25%-10;

printf("%d %d %d", a, b, c);

return 0;
}
  • (A) 5 -5 5
  • (B) 5 -5 -5
  • (C) -5 -5 5
  • (D) 5 5 5
  • Correct Answer - Option(C)
  • Views: 29
  • 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.