Give the output on the screen of the following program
#include <stdio.h>int main(){ int x; x = -3 + 4 * 5 -6; printf("%d\n",x); x = 3 + 4 % 5 -6; printf("%d\n",x); x = -3 * 4 % -6 / 5 ; printf("%d\n",x); x = (7 + 6) % 5 / 2; printf("%d\n",x); return 0;}
Difficulty level
This exercise is mostly suitable for students
11
1
0
1
Back to the list of exercises
Looking for a more challenging exercise, try this one !!
Maximum sum in sliding window