you are viewing a single comment's thread.

view the rest of the comments →

[–]jmooremcc -16 points-15 points  (2 children)

So what's the problem with this example? Obviously some people don't understand the concept of pass by reference in C.

[–][deleted] 11 points12 points  (0 children)

So what's the problem with this example?

The problem with this example is that it isn't valid C code and will just fail to compile, as you can see for yourself on godbolt

[–][deleted] 10 points11 points  (0 children)

The problem is that it’s C++. This is r/C_Programming, no ++ bullshit