string data types in c# |

Опубликовано: 18 Декабрь 2022
на канале: MortalTech
505
10

string data types in c# | #MortalTech | #7
In C#, a string is a series of characters that is used to represent text. It can be a character, a word or a long passage surrounded with the double quotes ". The following are string literals.

Example: String Literals
"S"
"String"
"This is a string."
C# provides the String data type to store string literals. A variable of the string type can be declared and assign string literal, as shown below.

Example: String Type Variables
string ch = "S";
string word = "String";
string text = "This is a string.";
The maximum size of a String object in memory is 2GB or about 1 billion characters. However, practically it will be less depending upon CPU and memory of the computer.



You can also find me here:
Instagram: MortalsTech
Facebook: MortalTech
Twitter: Mortalstech


На этой странице сайта вы можете посмотреть видео онлайн string data types in c# | длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь MortalTech 18 Декабрь 2022, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 505 раз и оно понравилось 10 зрителям. Приятного просмотра!