What will be the output?
#include <stdio.h>
int main()
{
int x,
x=(19+4)%5/2;
printf("%d\n", x);
return 0;
}
Answers
Answered by
1
Question:-
- Write the output of the following code segment.
Answer:-
Given code,
#include <stdio.h>
int main()
{
int x;
x=(19+4)%5/2;
printf("%d\n", x);
return 0;
}
Here, x=(19+4)%5/2;
Or,
x=23%5/2
Or,
x=3/2
Or,
x=1
Therefore, 1 is printed.
Output:-
1
Answered by
0
Answer:
1
Explanation:
x=(19+4)%5/2;
x=23%5/2;
x=3/2;
x=1;
Mark as brainliest : )
Similar questions
Math,
3 months ago
English,
8 months ago
Hindi,
8 months ago
Math,
1 year ago
Computer Science,
1 year ago