---
title: "Get our OS is 64 bit or not using C#"  
description: "Get our OS is 64 bit or not using C#"  
author: "Anonymous User"  
published: 2013-10-07  
updated: 2013-10-08  
canonical: https://www.mindstick.com/forum/1641/get-our-os-is-64-bit-or-not-using-c-sharp  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# Get our OS is 64 bit or not using C#

I want to get [our system](https://answers.mindstick.com/qa/31991/how-long-does-alcohol-stay-in-our-system) is 64 [bit](https://www.mindstick.com/forum/33411/how-we-tell-programmatically-if-i-m-running-in-64-bit-jvm-or-32-bit-jvm) or not can anybody provide me that’s [code](https://yourviews.mindstick.com/view/85458/alan-turing-the-mastermind-behind-cracking-the-enigma-code-during-world-war-ii), please.

## Replies

### Reply by Anonymous User

```
class Program    {        static void Main(string[] args)        {           if (Environment.Is64BitOperatingSystem)               
Console.Write("Your OS is 64 bit");            else               
Console.Write("Your OS isn't 64 bit");            Console.ReadKey();        }    }
```


---

Original Source: https://www.mindstick.com/forum/1641/get-our-os-is-64-bit-or-not-using-c-sharp

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
