Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • Any comment? What is wrong here in your opinion? Commented Feb 10, 2024 at 19:40
  • 2
    I didn't downvote, but perhaps because you're making an assumption that the character set is ASCII. I have redeeming qualities, but mind-reading isn't one of them. Commented Feb 10, 2024 at 19:55
  • One note: str can be const char *. Commented Feb 10, 2024 at 19:55
  • @Chris it is not a real program. only something which demonstrates the idea Commented Feb 10, 2024 at 20:09
  • 4
    @gulpr: Re “it is not a real program. only something which demonstrates the idea”: That is an excuse for claiming the answer is okay. You do not make improvements by excusing things as okay. You look for things that can be improved. If you were criticizing this post, how many issues could you find? Commented Feb 10, 2024 at 20:54