375 views

2 Answers

0 votes
0 votes
Here In printf, we used % operator. The sign bit of % operator depends on numerator so that output is 1,1,-1,-1.

Related questions

0 votes
0 votes
1 answer
1
Mojo-Jojo asked May 7, 2016
422 views
If a counter counts like : 0 - 4 - 2 - 5 - 3 - 0 (repeat).... what is the modulous value of counter?
3 votes
3 votes
5 answers
3
arpit.bagri asked Aug 6, 2023
1,088 views
Why is the output of the below program 36? int main(){ int a = 1; int b = ++a * ++a * ++a; printf("%d", b ); ​​​​ return 0; }