Definition:
Char data type holds only single character value, for example: ‘a’ or ‘A’ or ‘@’ etc.
Syntax:
char variableName = 'a';
char variableName2 = 'A';
C#Note that char data type has to be surrounded by single quotes.
•
Definition:
Char data type holds only single character value, for example: ‘a’ or ‘A’ or ‘@’ etc.
Syntax:
char variableName = 'a';
char variableName2 = 'A';
C#Note that char data type has to be surrounded by single quotes.