784 views

My doubt :

What should we consider ^ operator as Bitwise XOR  ? or Exponentiation

I am confused about different symbols used for exponen.. not precedence

|6|2|3|  +
|6|5|  -             (2+3=5)
|1|                   (6-5=1)
|1|3|8|2| /
|1|3|4|+          (8/2=4)
|1|7|*             (3+4=7)
|7|                 (1*7=7)

|7|3|^           (7^3 = 343)
|343|3|+
|346|

Therefore A=346

Y= 2*346+16 = 708

Yes it is 26.60..but answer key is 16 :/
the answer is $26.60$ and $16$ is wrong i think.

16 is wrong for sure;
in C and most of the programming languages ^ is bitwise xor.
For exponentiation you can use ** in python3, math.pow in C.

But in this question ^ is to be interpreted as a maathematical operator rather than programming construct
by

1
336 views