Swift program to perform the bitwise left-shift operation

bookmark

 


import Swift;

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

res = num1 << num2;

print(res);

 


Output:

32

...Program finished with exit code 0