String
A string is a data type. It represents a sequence of characters, like letters, numbers, or symbols, typically enclosed in quotation marks (e.g., "hello" or '123').
Strings are widely used to store and manipulate text in programming.
Instance:
string name = "Mehfila "
strings are always written in double quotes.
"Mehfila" is a string (data type)
name is the variable in which Mehfila is stored.
Top comments (0)