DEV Community

Mehfila A Parkkulthil
Mehfila A Parkkulthil

Posted on

Day 9 : C++ Language | Strings

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.

Enter fullscreen mode Exit fullscreen mode

Previous Blogs

Top comments (0)