Computer Science, asked by prosnehal7, 17 days ago

What will be the output of following relations if
d = 20 initially?
(i) + + d<=20
(ii) d + + <=20
(iii) + + d<= 35
(iv) (+ + d) *10>d​

Answers

Answered by BrainlyProgrammer
11

Answer:-

Note:-

  • The above question relational operator is there so it will return the answer in either true or false.

Let us solve..!

Given, d=20

  • ++d<=20

Now 21<=20, condition is false.. so it will return false

  • d++ <=20

Note: here will not increase now because d++ is postfix increment

Now 20<=20 , condition is true.. so it will return true

  • ++d<=35

21<=35, condition is true.. so it will return true

  • (+ + d) *10>d​

Well, lets solve it first

(++d)*10>d

(++20)*10>10

(21)*10>10

210>10

Now is 210>10? yes 210 is greater than 10 so it will return true.

Answered by madhavmohantripathi9
0

Answer:

• ++d<=20

Now 21<=20, condition is false.. so it will

return false

d++ <=20

Note: here will not increase now because

d++ is postfix increment

Now 20<-20, condition is true.. so it will

return true

• ++d<=35

21< 35, condition is true.. so it will return

true

(++ d) *10>d

Well, lets solve it first

(++d)*10>d

(++20)*10>10

(21)*10>10

210>10

Now is 210>10? yes 210 is greater than 10 so

it will return true.

Explanation:

mark me as brainlist

Similar questions