char data type in c# code example

Example 1: c# char

var chars = new[]
{
    'j',
    '\u006A',
    '\x006A',
    (char)106,
};
Console.WriteLine(string.Join(" ", chars));  // output: j j j j

Example 2: c# data types

// -------DATA TYPES ------- //

sbyte myNum = 1;             // Smallest range of integer numbers
uint myNum = 3;				 // Only positive integer numbers
short myNum = 4;             // Short range of integer numbers
int myNum = 5;               // Integer (whole numbers)
long myNum = 10;             // Biggest range of integer numbers 
float myFloat = 1.2f;        // Smallest range of floating point numbers
double myDoubleNum = 5.99;   // Big range of floating point numbers
decimal myDecimalNum = 2.2M; // Biggest precision in floating point numbers
char myLetter = 'D';         // Character
string myString = "Hello!"   // Strings
bool myBool = true;          // Boolean