You can also store text in variables, in addition to symbols using
char. For this, you need to:
- Connect the
- Use std scope resolution
- Declare a variable of type
Strings variables can also contain numbers (as text):
If you try to add two string variables, you get a concatenation (it works without spaces):
The same thing will happen with numbers – they will not be added algebraically.
What will the console display?
Select the correct answer
Everything was clear?