The question is easy! How do you represent a 64 bit int in C#?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
64 bit int is long
回答2:
System.Int64 is the .net type, in C# it's also called long
回答3:
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;
回答4:
By using the long data type, or ulong for unsigned.
Table of Integral C# Types