1 votes 1 votes In c language a«2 is equivalent to a) multiply by 2 b) divide by 2 c) addition by 2 d) none my answer is option a but given answer is d.. pls tell me wht is correct ansr Programming in C programming-in-c + – krati litoriya asked Feb 1, 2017 • retagged Jun 4, 2017 by Arjun krati litoriya 540 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
Best answer 2 votes 2 votes Answer d is correct since the left shift operator multiplies a given no a by d power of 2. So here if 2 is mentioned then it is certainly multiplication by the power of 2 which is 4. I hope d explanation helps you. For more information on left shift operator visit the link below. Okay!!! http://www.c4learn.com/c-programming/c-bitwise-left-shift-operator/ Devshree Dubey answered Feb 1, 2017 • selected Feb 1, 2017 by Arjun Devshree Dubey comment Share Follow See all 3 Comments See all 3 3 Comments reply Devshree Dubey commented Feb 1, 2017 reply Follow Share Not multiplication by 2 okay. :) 0 votes 0 votes krati litoriya commented Feb 1, 2017 i edited by krati litoriya Feb 1, 2017 reply Follow Share Ohh.. just now i saw i wrote wrong question, dey ppl was saying to shift by one position and den ansr is (d).. in d above case i'm clear 0 votes 0 votes Devshree Dubey commented Feb 1, 2017 reply Follow Share Look there d number given is 2. And not 1. So eventually it means 2^2 and not 2^1. Okay.:) 0 votes 0 votes Please log in or register to add a comment.