Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by manwe150

3 months ago

I think you meant: "22"+2 = "", and it is not UB to make the second pointer, only to use it

1 comment

manwe150

Reply

hoseja  3 months ago

The pointer arithmetic works both ways, same as square brackets.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities