the_tech_beast@lemmy.ml to C & C++@lemmy.ml · 3 years agoWhat is the use of a void function if it doesn't return a value?message-squaremessage-square24fedilinkarrow-up16arrow-down10
arrow-up16arrow-down1message-squareWhat is the use of a void function if it doesn't return a value?the_tech_beast@lemmy.ml to C & C++@lemmy.ml · 3 years agomessage-square24fedilink
minus-squareLunaticHacker@lemmy.mllinkfedilinkarrow-up1·3 years agoOf 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
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
Yes, thanks for the help