BIT SIZE OF OPERATING SYSTEM USING C#.
There are two method to check this -
1. check
int size= IntPtr.Size;
//if size=4 -> OS is 32 bit
//if size=8.> OS is 64 bit
2. check
boolean bitsize= Environment.Is64BitOperatingSystem
If this return true then it means OS is 64 bit or if return false means OS is 32 bit.