Keywords are the words in a language that are used for some internal process or represent some predefined actions. SByte is a keyword that is used to declare a variable that can store a signed value between the range of -128 to +127. It is an alias of System.SByte.
SByte keyword occupies 1 byte (8 bits) in the memory.
sbyte variable_name = value;
SByte keyword can store the value from the range of -128 to +127.
Input: -109 Output: num: -109 Size of a sbyte variable: 1 Input: 110 Output: Type of num: System.SByte num: 110 Size of a sbyte variable: 1
num: -109 Size of a sbyte variable: 1
Type of num: System.SByte num: 110 Size of a sbyte variable: 1
Error: When we enter number beyond the range from (-128-127).
Constant value `-189′ cannot be converted to a `sbyte’
- C# | SByte Struct Fields
- SByte.CompareTo() Method in C# with Examples
- SByte.Equals Method in C# with Examples
- SByte.GetHashCode Method in C# with Examples
- SByte.GetTypeCode Method in C# with Examples
- SByte.ToString Method in C# with Examples | Set - 2
- SByte.ToString() Method in C# with Examples | Set - 1
- Difference between byte and sbyte in C#
- How to implement is functionality without using is keyword in C#
- C# | this Keyword
- C# | finally keyword
- C# | as Operator Keyword
- C# | is Operator Keyword
- Is vs As operator keyword in C#
- Static keyword in C#
- typeof Operator Keyword in C#
- Invoking an overloaded constructor using this keyword in C#
- Difference between readonly and const keyword in C#
- LINQ | Let Keyword
- uint keyword in C#
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.