0 votes 0 votes the expression 1*2^3*4^5*6 will be evaluated as a)32^30 b)162^30 c)49152 d)173458 Sanjay Sharma asked May 14, 2016 • edited May 15, 2016 by Sanjay Sharma Sanjay Sharma 4.7k views answer comment Share Follow See all 2 Comments See all 2 2 Comments reply rajan commented May 14, 2016 reply Follow Share c 49152 ??? 0 votes 0 votes shivanisrivarshini commented May 14, 2016 reply Follow Share 1*23*210*2*3=214 * 3 =49152 0 votes 0 votes Please log in or register to add a comment.
Best answer 2 votes 2 votes Since the power has a higher priority than the multiplication 1*2^3*4^5*6 = 1 * (2^3) * (4^5 ) * 6 =1 * 8 * 1024 * 6 =49152 vijaycs answered May 14, 2016 • selected Jun 20, 2016 by Desert_Warrior vijaycs comment Share Follow See all 4 Comments See all 4 4 Comments reply rajan commented May 14, 2016 reply Follow Share bt they dont mention about waht type of operator is this . it can be bitwise xor may be bcz option c they given is different than me and ur answer @vijaycs07 and @ shivanisrivarshini 0 votes 0 votes vijaycs commented May 14, 2016 reply Follow Share If " ^ " is bitwise xor operator then multiplication would be done first You can find priority list here https://en.wikipedia.org/wiki/Order_of_operations and result would be something like (1 * 2) xor ( 3 * 4 ) xor (5 * 6) = 2 xor 12 xor 30 =16 (which is no where close to given options) I think there is a typing mistake in option C. 2 votes 2 votes rajan commented May 14, 2016 reply Follow Share ya it would be 0 votes 0 votes Sanjay Sharma commented May 15, 2016 reply Follow Share yes typo in option C edited 0 votes 0 votes Please log in or register to add a comment.