Operator ++ with strings or chars | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Operator ++ with strings or chars

I got several questions in challenges looking like: string s= "foobar"; s++; What does that even mean? I'm totally confused with this and I have lost a few challenges because of thèse. Would somebody explain the meaning of this?

3rd May 2022, 4:09 PM
Jean-Baptiste Laurent
1 Answer
+ 2
That's invalid. Can you share full code.. Is 's' is pointer ? I guess.
4th May 2022, 11:16 AM
Jayakrishna 🇮🇳