Working with Variables: Strings
Learn about options for storing text in C# including literal strings, raw string literals, verbatim strings, and interpolated strings.
All applications process data. Data comes in, data is processed, and then data goes out. Data usually comes into our program from files, databases, or user input, and it can be put temporarily into variables that will be stored in the memory of the running program. When the program ends, the data in memory is lost. Data is usually output to files, databases, the screen, or a printer. When using variables, we should think about the following:
How much space does the variable take in the memory?
How fast can it be processed?
Get hands-on with 1400+ tech skills courses.