Rules to write strings in C++?
Answers
Answered by
1
To print a string in C++ programming, first ask to the user to enter any string (like his/her name) and receive the string using the function gets(). Now to print the string, just place the string after cout<< to print the string. Here, we print the string (your name) with Hello, as shown here in the following program.
Hope it helps. PLEASE MARK ME BRAINLIEST AND FOLLOW ME.
Similar questions
Computer Science,
5 months ago
Science,
5 months ago
Geography,
5 months ago
Chemistry,
10 months ago
Physics,
10 months ago
Social Sciences,
1 year ago
English,
1 year ago
English,
1 year ago