Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Shift operators  RSS feed

 
Dinesh Tahiliani
Ranch Hand
Posts: 486
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
question : char c=1, bytes b=1, int i=1 string s=1

options are:
1.s=i<<b
2.s=b>>i
3.s=b*b
[ August 06, 2007: Message edited by: dinesh tahiliani ]
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK. Do you have a question about this?
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16027
87
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If your question is whether these three lines work or what the result is, then you can find the answer very quickly by writing a small program and compiling and running it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!