-
Notifications
You must be signed in to change notification settings - Fork 8
13. Strings
Madhav Anand edited this page Nov 15, 2020
·
2 revisions
| Character Array | String Array |
|---|---|
| Static: Need to know the size beforehand | Dynamic: No Need know the size beforehand |
| Hard and Larger size required for performing operations like concatenation, append etc. | Performing Operations like concatenation and append is easier |
| Don't terminate with special character '\0' | Automatically terminate with special character '\0' |
- Strings can be thought of elder brother of Character Arrays.
- Header file for Strings:
#include<string> - Comment on
string str: string iskeywordand str isidentifier. - Is string a datatype ? While using it, we can think of datatype but it is a class.
- How to take multi-line input in string.
getline(cin,{stringName})&cin.ignore(); - How Multi-line Input works ? Click Here
- Header file for Sort:
#include<algorithm>
- Frequent Character - Case: Multiple Char frequent
- How Multi-line String Input
- String Comparison Function Working
- String Compression
- String is a Class