How do I print the first character of a string?
How do I print the first character of a string? Trying to print the first character of a stringuse %c to print a character rather than a string. – Christian Gibbons. str , and thus str+0 , points to radar . str+1 therefore points to adar . keeping that one as a canonical duplicate. I'm sure this has been asked before, but I like the shortness of the question. How do I print a character in a string in C++? Print a String in C++Use std::cout and << Operator to Print a String.Use std::copy Algorithm to Print a String.Use printf()...