C# – Strings

The string type in C# is used to store a sequence of characters, for example, amit, john, sachin, etc. Declare a string variable using the string keyword. The string variable value is surrounded by double quotes.

Create a String

To create a String, use the string keyword. This declares a string. Let us see an example to declare and initialize a string:

Output

C# String Operations
C# Arrays
Studyopedia Editorial Staff
contact@studyopedia.com

We work to create programming tutorials for all.

No Comments

Post A Comment

Discover more from Studyopedia

Subscribe now to keep reading and get access to the full archive.

Continue reading