Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using C#, how to get whether my machine is 64bit or 32bit?

Using C#, I would like to create a method that retunrs whether my machine is 64 or 32-bit.

Is there anybody who knows how to do that?

like image 612
Slt Avatar asked Aug 11 '11 19:08

Slt


People also ask

What is C in used for?

C is a programming language that is both versatile and popular, allowing it to be used in a vast array of applications and technologies. It can, for example, be used to write the code for operating systems, much more complex programs and everything in between.

Is C used nowadays?

There is at least one C compiler for almost every existent architecture. And nowadays, because of highly optimized binaries generated by modern compilers, it's not an easy task to improve on their output with hand written assembly.

Why do people use C?

As a middle-level language, C combines the features of both high-level and low-level languages. It can be used for low-level programming, such as scripting for drivers and kernels and it also supports functions of high-level programming languages, such as scripting for software applications etc.

Is C Programming good for beginners?

As I have said, C is a powerful, general-purpose programming language, and it's also a great language to learn when you start with programming. It gives you a lot more control over how your program uses memory, which is a tricky part but also very important if you want to become a better programmer.


1 Answers

System.Environment.Is64BitOperatingSystem

like image 124
Vlad Avatar answered Nov 14 '22 19:11

Vlad