Int64 : Este Int64 -9,223,372,036,854,775,808 a +9, 223,372,036,854,775,807
C#
// C# program to show the // difference between Int64 // and UInt64 using System; using System.Text; public class GFG { // Main Method static void Main(string[] args) { // printing minimum & maximum values Console.WriteLine("Minimum value of Int64: " + Int64.MinValue); Console.WriteLine("Maximum value of Int64: " + Int64.MaxValue); Console.WriteLine(); // Int64 array Int64[] arr1 = {-3, 0, 1, 3, 7}; foreach (Int64 i in arr1) { Console.WriteLine(i); } } }
Producción:
Minimum value of Int64: -9223372036854775808 Maximum value of Int64: 9223372036854775807 -3 0 1 3 7
UInt64 : Este UInt64 0 a
C#
// C# program to show the // difference between Int64 // and UInt64 using System; using System.Text; public class GFG{ // Main Method static void Main(string[] args) { //printing minimum & maximum values Console.WriteLine("Minimum value of UInt64: " + UInt64.MinValue); Console.WriteLine("Maximum value of UInt64: " + UInt64.MaxValue); Console.WriteLine(); //Int64 array UInt64[] arr1 = { 13, 0, 1, 3, 7}; foreach (UInt64 i in arr1) { Console.WriteLine(i); } } }
Producción:
Minimum value of UInt64: 0 Maximum value of UInt64: 18446744073709551615 13 0 1 3 7
Diferencias entre Int64 y UInt64 en C#
No Señor |
INT64 |
UINT64 |
1. |
Int64 64 | UInt64 64 |
2. |
Int64 | UInt64 |
3. |
||
4. |
||
5. |
TInt64 | El UInt64 va desde |
6. |
Sintaxis para declarar el Int64 : Int64 variable_name; |
Sintaxis para declarar el UInt64: UInt64 variable_name; |
Publicación traducida automáticamente
Artículo escrito por SHUBHAMSINGH10 y traducido por Barcelona Geeks. The original can be accessed here. Licence: CCBY-SA