Computer Science, asked by chayan2170, 2 months ago

d = 15 - --a * b++ % 3,a=7,b=11,c=5,d.​

Answers

Answered by gbarman74
1

Explanation:

A distributary, or a distributary channel, is a stream that branches off and flows away from a main stream channel. Distributaries are a common feature of river deltas. The phenomenon is known as river bifurcation. The opposite of a distributary is a tributary.

Answered by xXMarziyaXx
1

Value of a = 3, b = 5, d = 1.5

(A) c=a++ + b * ++d

Here, c is a integer. So, all the no. will be treated as integers.

Now,

c = a++ + b * ++d

Here, a is post incrementated. So, it'll follow the USE THEN CHANGE method.

And d is pre incrementated. So, it'll follow the CHANGE THEN USE method.

c = 3 + 5 * 2 [value of a changes to 4 after use]

Value of d will be 2.5 but since c, the answer, is integer, we'll only take the value of d as 2.

c = 3 + 10

c = 13

(B) f = b* b++ - ++a

f is a floating point therefore the answer will also be a floating point number and all numbers will be treated as floats.

f = 5 * 5 - 5

value of was 4. It has pre increment operator which implies CHANGE THEN USE rule. So, the value, here, becomes 5.

Now,

f = 25 - 5

f = 20

 \\

Similar questions