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
view the rest of the comments
It could also modify memory. If the function writes to a global variable or to an address passed as a parameter, then it makes a difference. For example, would you say the void function 'free()' is useless?
Thanks