this post was submitted on 23 Oct 2021
6 points (100.0% liked)

C & C++

890 readers
9 users here now

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] lunatichacker@lemmy.ml 1 points 3 years ago (1 children)

Of course they aren't the same. try to achieve the same output with int sum() instead of void sum() this small exercise will help you understand the difference

[โ€“] the_tech_beast@lemmy.ml 0 points 3 years ago

Yes, thanks for the help