What is String?

In short string define as a set of characters. It is a data type used in a programming language to hold the data. It may be anything words or a number and also contains text and spaces.

In programming, the string must be enclosed in quotation marks like “computer” or “Can I use your computer” both are string. Even set of numbers “1234567890” are also be a string if it properly specified.

The string will be is terminated by using the null character ‘/0’.

Example

Str = “technology”;
string

Also read: How to convert Int to string in Python?

I've loved ❤ technology and always curious about new tech innovation. I've been a technology writer and passionate blogger for last 3 year and write How to guide to help people become a tech-savvy.