• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

sHIFTING

 
GAYATRI J
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A POSITIVE NUMBER LEFT SHIFTED RESULTS IN THE NUMBER MULTIPLIED BY 2 TO THE POWER OF NUMBER OF BITS SHIFTED.
SIMILARLY A NEGATIVE NUMBER RIGHT SHIFTED RESULTS IN THE NUMBER DIVIDED BY 2 TO THE POWER OF NUMBER OF BITS SHIFTED.
DOES THE SAME RULES APPLY IF THE NUMBER TO BE SHIFTED IS A NEGATIVE NUMBER?
DO LET ME KNOW THE RULES FOR NEGATIVE NUMBER SHIFTING
DO LET ME KNOW URGENTLY AS IAM PREPARING FOR SUN EXAM?
ALSO I WANT TO ASK WHETHER CONSTRUCTORS CAN THROW EXCEPTIONS
THANKS,
GAYATRI J
 
Marcus Green
arch rival
Rancher
Posts: 2813
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Congratulations on your results
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am moving this thread to Programmers Certification Study forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic