623 views
0 votes
0 votes

https://gateoverflow.in/15906/isro2014-32

IN THIS QUESTION WHILE DOING  

ANSWER OF   

see 0570 mean its in octal . 

so 000 101 111 000  

now >>4 means 010 111 

now <<6 means 010 111 000 000 = 2700 

HE TOOK 0570 AND CONVERTED TO BINARY AND THEN GETTING 2700 IN OCTAL BUT WHEN I AM TAKING 570 NOT TAKING MSB 0 THEN ANSWER IS DIFFERENT ..WHY WHAT IS THE REASON IS THE MSB 0 IS NOT FOR SAYING IT IS OCTAL NUMBER OR WE NEED TO CONSIDER IT.?

 

Please log in or register to answer this question.

Related questions

919
views
2 answers
0 votes
Purple asked Jan 23, 2016
919 views
Consider the C function func shown below: int func(int num) { int count = 0; while (num) { count++; num>>= 1; } return (count); }The value returned by func(0235) is ________
566
views
1 answers
0 votes
Mayank Joshi asked Dec 16, 2018
566 views
P is a 16-bit signed integer. The 2’s complement representation of P is $(E77B)_{16}$. The 2's complement representation of 8×P is?
386
views
0 answers
0 votes