[ create a new paste ] login | about

Link: http://codepad.org/OzIcMgvc    [ raw code | output | fork ]

C, pasted on Nov 12:
1
2
3
4
5
6
7
8
9
#include <stdio.h>
int main()
{
int a = -10, b = -3;
printf("%d\n", a%b);
printf("%d\n", a/b%b);
printf("%d\n", -a%b);
printf("%d\n", a-=b+++1);
}


Output:
1
2
3
4
5
6
-1
0
1
-8

Exited: ExitFailure 3


Create a new paste based on this one


Comments: