369 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
394 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
2
arpit.bagri asked Aug 6, 2023
1,041 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; }
0 votes
0 votes
3 answers
4
lalitver10 asked Oct 23, 2021
667 views
#include <stdio.h>int main(){ int a=20; int *ptr=&a; int x=a; printf ("%p\n",&*ptr); printf ("%p\n",&a); return 0;}Why both printf() line printing the s...