Computer Science, asked by muzammilpatel010, 8 months ago

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 anindyaadhikari13
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 rahmanbinjaffar
0

Answer:

1

Explanation:

x=(19+4)%5/2;

x=23%5/2;

x=3/2;

x=1;

Mark as brainliest : )

Similar questions