I am trying to convert some Java code to C#. How can the following unsigned right shift operation be represented in C#?
int src1, src2, ans; ans = src1 >>> src2;
C programming language is a machine-independent programming language that is mainly used to create many types of applications and operating systems such as Windows, and other complicated programs such as the Oracle database, Git, Python interpreter, and games and is considered a programming foundation in the process of ...
C is a structured, procedural programming language that has been widely used both for operating systems and applications and that has had a wide following in the academic community. Many versions of UNIX-based operating systems are written in C.
Mean? The C drive (C:) is the main hard disk partition which contains the operating system and the related system files. In Windows operating systems, the C drive as represented as “C:\”, the backlash representing the root directory of the drive.
You have to cast first, there is not one operator for >>>, code sample:
int x = -100; int y = (int)((uint)x >> 2); Console.WriteLine(y);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With