views:

111

answers:

4

Hi,The question is easy! How do you represent a 64 bit int in C#?

+5  A: 

System.Int64 is the .net type, in C# it's also called long

Preet Sangha
+2  A: 

By using the long data type, or ulong for unsigned.

Table of Integral C# Types

RPM1984
+1  A: 

64 bit int is long

SaeedAlg
+1  A: 

A signed 64 bit integer is long, an unsigned is ulong.

The corresponding types in the framwwork are System.Int64 and System.UInt64, respectively.

Example:

long bigNumber = 9223372036854775807;
Guffa