Computer Science, asked by urmanbhai, 10 months ago

Rules to write strings in C++?

Answers

Answered by parijatsoftwares
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