C output type question

Q.  Trace the output.

void main()
{
printf("%d",-5%3);
}

- Published on 17 Jun 15

a. 1
b. 2
c. -2
d. 2.5

ANSWER: -2

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)