Computer Science, asked by SƬᏗᏒᏇᏗƦƦᎥᎧƦ, 6 months ago

Please solve these.
And don't try to spam ​

Attachments:

Answers

Answered by sugantipandit7
3

Water, a substance composed of the chemical elements hydrogen and oxygen and existing in gaseous, liquid, and solid states. It is one of the most plentiful and essential of compounds. A tasteless and odourless liquid at room temperature,

Answered by anindyaadhikari13
4

Answer:-

Given that,

int a=4,b=6,c=2;

Question 1:-

int x=(a++*++c)<(++b*2)? ++a + b++: --b+--c;

➡ a++*c++ =4*2=6

And,

➡++b*2=7*2=14

Now,

a=5, b=7, c=3

Therefore,

a++*c++<++b*2

So,

x=++a + b++

➡ x=6+7

➡ x = 13

Hence, the value of x is 13.

Question 2:-

x=(++a + ++b + ++c)!=20?++b%++c:++a%++c;

++a + ++b + ++c

= 5+7+3

= 15

Now,

a=5, b=7 and c=3

Hence, 15!=20 is true.

So,

➡ x=++b%++c

➡ x = 8%4

➡ x = 0

Hence, the value of x is 0.

Question 3:-

x=(--a + --c - --b)<5 ?++a%++c*a : ++a + ++b%c

--a + --c - --b

= 3 + 1 - 5

= -1

Now,

a=3, b=5 and c=1

Now,

-1<5 is true.

➡ x = ++a%++c*a

➡ x = 4%2*4

➡ x = 0*4

➡ x = 0

Hence, the value of x is 0.

Question 4:-

x = (++a * ++b)<--c ? ++c% ++b + a-- : a++/c--;

++a * ++b = 5*7=35

--c = 1

Now,

a=5,b=7, c=1

Now,

35<1 is false.

So,

x=a++/c--

=5/1

=5

Hence, the value of x is 5

Question 5:-

x=(++c<++b) ? ( (++a>++b)?++c : ++b ): ++a;

Now,

++c<++b

=3<7 is true.

Now,

a=4, b=7, c=3

So,

x=(++a>++b)?++c:++b;

++a > ++b

= 5>8

which is false.

Now,

b=8

So,

x = ++b

= 9

Hence, the value of x is 9.

Similar questions