Swift Program to Perform the Bitwise Right-Shift Operation

You are currently viewing Swift Program to Perform the Bitwise Right-Shift Operation

Swift program to perform the bitwise right-shift operation

// Swift program to the 
// perform right-shift operation

import Swift;

var num1 = 64;
var num2 = 3;
var res = 0;

res = num1 >> num2;

print(res);

Output

8

...Program finished with exit code 0
Press ENTER to exit console.

Ranjith

Hi, I'm Manoj a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coding Diksha. Here, I post about programming to help developers.

Leave a Reply