0 votes 0 votes What will be output ? A. Abnormal Termination. B. Infinite loop C. Output wil be 65536 D. None Ans. D DS programming-in-c programming output + – Na462 asked Aug 22, 2018 Na462 480 views answer comment Share Follow See 1 comment See all 1 1 comment reply MiNiPanda commented Aug 22, 2018 reply Follow Share a=240 and b=1 = 2240-240 a=241 and b=2 =2241-240 a=242 and b=2*2 =2242-240 a=243 and b=2*2*2=2243-240 ......... a=255 and b= 215 = 2255-240 a=256 which takes 2B but unsigned char has 1B so the considering little endian architecture, the MSB i.e. 1 goes out of this 1B and a becomes 0. b=2256-240=216. b is unsigned short which has 2B but 216 requires 17 bits i.e. >2B. So again MSB goes out from this 2B and it becomes 0. So i think function will return 0. 4 votes 4 votes Please log in or register to add a comment.