I have this code:
#include <stdio.h>
int main(){
int a = 5 % -2;
printf("%d", a);
return 0;
}
Normally, it should return me -1 as an output. However, it is returning 1 instead.Why??
I have this code:
#include <stdio.h>
int main(){
int a = 5 % -2;
printf("%d", a);
return 0;
}
Normally, it should return me -1 as an output. However, it is returning 1 instead.Why??