Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - What does the face value of C# mean?
What does the face value of C# mean?
In C#, words refer to fixed values expressed in human-readable form. For example, the number 100 is text. In most cases, words and their usage are so intuitive that all the previous sample programs use them in one form or another. The following is a formal introduction to the text. C# text can be of any value type. The representation of each literal value depends on its type. As mentioned earlier, characters are enclosed in single quotation marks. For example, "a" and "%"are both character texts. Integer literals are specified as values without decimal parts. For example, 10 and–100 are integers. Floating-point text requires a decimal point followed by the decimal part of the number. For example, 1 1. 123 is a floating-point literal. C# also allows the use of scientific symbols to represent floating-point numbers. ////EBS literal is a constant whose value can be known from the source code, such as the strings "1234", "KKK" and "kkk".

Integer 1,134,555 floating point 123.4 123.33E5, -3.44 For example, there is a constant constint A = 3; MessageBox。 Display (1); //Although this a is a constant, it is not a literal value here. The 3 that initializes it is a literal value.