can anyone explain the output of
y>>=3; printf(“%d\n”y);
thanks
can anyone explain the output of
y>>=3; printf(“%d\n”y);
thanks
EmbLogic Research & Competency Development Labs
Phone: +91 9818467776, 8527567776, 9650467776
Email: info@emblogic.com
Copyright © EmbLogic Embedded Technologies Pvt. Ltd.
first convert the value of y in binary or move it 3 bit right side because “>>” this show the right shift operator or
divide the value of y by 2 power 3;
if y is 8 its binary is 1000, in 1st move it become 0100 then 0010 than 0001,,so final its value become 1;