EmbLogic's Blog

facing with output in qo6 of assignment01

can anyone explain the output of

y>>=3; printf(“%d\n”y);

thanks

One Response to facing with output in qo6 of assignment01

  1. niket says:

    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;

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>