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;
}
β
Correct Answer: (C)
-5 -5 5