Difference between Int64 and UInt64 in C# Last Updated : 26 May, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report Int64: This Struct is used to represents 64-bit signed integer. The Int64 can store both types of values including negative and positive between the ranges of -9,223,372,036,854,775,808 to +9, 223,372,036,854,775,807 Example : 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); } } } Output: Minimum value of Int64: -9223372036854775808 Maximum value of Int64: 9223372036854775807 -3 0 1 3 7 UInt64: This Struct is used to represents 64-bit unsigned integer. The UInt64 can store only positive value only which ranges from 0 to 18,446,744,073,709,551,615. Example : 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); } } } Output: Minimum value of UInt64: 0 Maximum value of UInt64: 18446744073709551615 13 0 1 3 7 Differences between Int64 and UInt64 in C# Sr.No INT64 UINT64 1. Int64 is used to represents 64-bit signed integers .UInt64 is used to represent 64-bit unsigned integers.2. Int64 stands for signed integer.UInt64 stands for unsigned integer.3. It can store negative and positive integers.It can store only positive integers.4. It takes 8-bytes space in the memory.It also takes 8-bytes space in the memory.5. The range of Int64 is from -9223372036854775808 to +9223372036854775807.The UInt64 ranges from 0 to 18446744073709551615. 6. Syntax to declare the Int64 : Int64 variable_name; Syntax to declare the UInt64: UInt64 variable_name; Comment More infoAdvertise with us S SHUBHAMSINGH10 Follow Improve Article Tags : Difference Between C# CSharp-Int64-Struct CSharp-UInt64-Struct Similar Reads Difference Between IPv4 and IPv6 IPv4 and IPv6 are two versions of the system that gives devices a unique address on the internet, known as the Internet Protocol (IP). IP is like a set of rules that helps devices send and receive data online. Since the internet is made up of billions of connected devices, each one needs its own spe 7 min read Differences between TCP and UDP Transmission Control Protocol (TCP) and User Datagram Protocol (UDP) both are protocols of the Transport Layer Protocols. TCP is a connection-oriented protocol whereas UDP is a part of the Internet Protocol suite, referred to as the UDP/IP suite. Unlike TCP, it is an unreliable and connectionless pr 9 min read Differences Between JDK, JRE and JVM Understanding the difference between JDK, JRE, and JVM plays a very important role in understanding how Java works and how each component contributes to the development and execution of Java applications. The main difference between JDK, JRE, and JVM is:JDK: Java Development Kit is a software develo 3 min read Difference Between OSI Model and TCP/IP Model Data communication is a process or act in which we can send or receive data. Understanding the fundamental structures of networking is crucial for anyone working with computer systems and communication. For data communication two models are available, the OSI (Open Systems Interconnection) Model, an 5 min read C# Tutorial C# (pronounced "C-sharp") is a modern, versatile, object-oriented programming language developed by Microsoft in 2000 that runs on the .NET Framework. Whether you're creating Windows applications, diving into Unity game development, or working on enterprise solutions, C# is one of the top choices fo 4 min read Introduction to .NET Framework The .NET Framework is a software development framework developed by Microsoft that provides a runtime environment and a set of libraries and tools for building and running applications on Windows operating systems. The .NET framework is primarily used on Windows, while .NET Core (which evolved into 6 min read Difference Between Method Overloading and Method Overriding in Java Understanding the difference between Method Overloading and Method Overriding in Java plays a very important role in programming. These two are the important concepts that help us to define multiple methods with the same name but different behavior, both of these are used in different situations. Th 6 min read Java Checked vs Unchecked Exceptions In Java, an exception is an unwanted or unexpected event that occurs during the execution of a program, i.e., at run time, that disrupts the normal flow of the programâs instructions. In Java, there are two types of exceptions:Checked Exception: These exceptions are checked at compile time, forcing 5 min read Difference between SaaS, PaaS and IaaS Cloud Computing has transformed the way companies access, manage, and expand their IT resources. Among the many cloud services models, IaaS(Infrastructure as a Service), PaaS(Platform as a Service), and SaaS(Software as a Service) are the most popular. Each of these models provides different service 7 min read Differences and Applications of List, Tuple, Set and Dictionary in Python Python provides us with several in-built data structures such as lists, tuples, sets, and dictionaries that store and organize the data efficiently. In this article, we will learn the difference between them and their applications in Python.Difference between List, Tuple, Set, and DictionaryThe foll 10 min read Like