Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

Swift Right Shift Operator

var a = 4

var result = a >> 2
print(result)    // 1

a = -4

result = a >> 2
print(result)    // -1
 
PREVIOUS NEXT
Tagged: #Swift #Right #Shift #Operator
ADD COMMENT
Topic
Name
8+5 =