In the programming language like C #, the data type is used everywhere. Because it is a strongly typed language, you must inform the compiler that every time you declare a variable, what data type you want to use, as you will see in the variables chapter. In this chapter we will take a look at some of the most commonly used data types and how they work.
Bool
Bool is one of the simplest data types. It can contain only 2 values - it is important to understand the wrong type of incorrect or correct when logical operators use such statements.
Int
int is a small integer, data type to store numbers without decimals. When working with numbers, int is the most commonly used data type. Within many data types of Integers, C is #, depending on the size of the number that they should store.
String
String is used to store text, that is, in many letters C #, the string is irreversible, which means that the wire can never be changed after making it. When using the methods that make the string change, the actual string does not change - a new string has been returned.
Used to store four single characters
Float
Float is one of the data types, which can be used to store numbers, which may or may not be included in decimal.
0 comments:
Post a Comment