cross-posted from: https://lemmy.ml/post/14869314

“I want to live forever in AI”

You are viewing a single thread.
View all comments View context
7 points

You can pass nullptr in the second example (that is not what OP wrote though, hes second is making a copy).

permalink
report
parent
reply
3 points

Thanks, I was Just curious. I knew what * did but I wasn’t sure about &

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 7.5K

    Monthly active users

  • 978

    Posts

  • 38K

    Comments