0

Below is the left shift code in c# netcore 3.1 and go 1.19.

C#

var cShartLeftShift = 0x2555C6 << 0x10;
Console.WriteLine(cShartLeftShift);

Output: 1439039488

Go

gLeftShift := 0x2555C6 << 0x10
fmt.Println(gLeftShift)

Output: 160352829440

Why and how to match Go output with C# output?

Thanks in advance.

karel
  • 21
  • 1

0 Answers0