• pancake@lemmy.ml
    link
    fedilink
    arrow-up
    4
    ·
    3 years ago

    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?