the_tech_beast to C & C++ · 3 years agoWhat is the use of a void function if it doesn't return a value?message-squaremessage-square22fedilinkarrow-up16arrow-down11
arrow-up15arrow-down1message-squareWhat is the use of a void function if it doesn't return a value?the_tech_beast to C & C++ · 3 years agomessage-square22fedilink
minus-squareLunaticHackerlinkfedilinkarrow-up2·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