670 views

1 Answer

1 votes
1 votes

In c sign of numerator is always prefixed before the remainder

i.e Remainder will always carry the sign of numerator 

Related questions

0 votes
0 votes
3 answers
1
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...
0 votes
0 votes
2 answers
2
Lakshman Bhaiya asked Apr 21, 2018
2,528 views
Q) What is the output of the following C Program fragment#include<stdio.h>int main(){int a = 4, b = 3;printf("%d",a+++++b);return 0;} A) 7 B) 8 C) 9 ...
0 votes
0 votes
1 answer
3
Lakshman Bhaiya asked Mar 1, 2018
2,277 views
Q)If a is 15, then what would be the value of:printf("%d , %d , %d , %d ", ++a , a++, a , a );A)16,16,16,16 B)15,13,15,15C)16,15,14,14 D)16,16,14,14
3 votes
3 votes
5 answers
4
arpit.bagri asked Aug 6, 2023
1,042 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; }