This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ShiftWise operator

 
Vidya Lakshman
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



what is the output of the above code & explain the working?
Any help is highly appreciated.


Regards
Vidya
 
Ankit Dan
Ranch Hand
Posts: 47
Eclipse IDE Java MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


this will help you analyse..
 
Matthew Brown
Bartender
Posts: 4566
8
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vidya Lakshman wrote:what is the output of the above code & explain the working?

The best way for you to find out the output would be to run it yourself.

So run it, and try and work out why the output is what it is. Then come back to us if you can't work it out, and we can help you.
 
Campbell Ritchie
Sheriff
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why, on the other thread, did you think the 4th line gives a negative output?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic