codeGK
Code it ALL
C# Long - CodeGK
♦ C# Long

♣ About Long in C#

Long is used to store integer values having greater(more than Int data type length) length.
C# provides 8 bytes to the variable assigned for Long Variable.
Range of long variable is from -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807.

♣ Example1: Long in C#

In this example, long is illustrated.
Example
Input:
Output:

♣ Example2: Operations on Long in C#

In this example, operations on long data type variables are illustrated.
Example
Input:
Output:
Prev_LessonNext_Lesson