• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
+ 1

Strings

How do you return a string in c++?

c++strings
29th Sep 2018, 4:55 PM
romina
romina - avatar
1 Answer
+ 3
create a function with a data type string. Eg. string Reverse(string wrd,int Len) { // some code here return wrd; }
29th Sep 2018, 4:57 PM
RZK 022
RZK 022 - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Which is easier to learn first between python and JS?
0 Votes
Does sololearn teaches on how to create games
0 Votes
Excuse me, why do they always ask us to input without telling us what it is for in python.
2 Votes
Sockets, etc
0 Votes
Quiz
0 Votes
I HAVE A PROBLEM I CANNOT ABLE TO SEND MESSAGE ANYONE AND ALSO MY MESSAGE SECTION NOT AVAILABLE "PLEASE ACTIVATE YOUR ACCOUNT
0 Votes
Any Sololearn Chat Groups that I could Join?
0 Votes
NecesitĂł ayuda
1 Votes
can't understand an error
0 Votes
Table tags on html
0 Votes