What will be the output of the following C code? #include<stdio.h> int main(){ int x; int i = 5; int l = i /-2; int k = i % -2; printf("%d %d\n", l…
What will be the output of the following C code?
#include<stdio.h>
int main(){
int x;
int i = 5;
int l = i /-2;
int k = i % -2;
printf("%d %d\n", l, k);
x = 5 % 1;
printf("%d\n", x);
return 0;
}From the BUET MSC (ICT) July 2021 – MCQ exam, question 26 of 57.