Sobes.tech
Junior — Middle

What data type is used to store a sequence of characters?

sobes.tech AI

Answer from AI

In C#, the string data type is used to store sequences of characters. It is an immutable type, representing a sequence of Unicode characters.

Example usage:

string greeting = "Hello, world!";
Console.WriteLine(greeting);