confusion about void and what it means.
<p>I am very new to programming and am confused about what void does, I know that when you put void in front of a function it means that "it returns nothing" but if the function returns nothing then what is the point of writing the function?? Anyway, I got this question on my homework and am trying to answer it but need some help with the general concept along with it. any help would be great, and please try to avoid technical lingo, I'm a serious newb here.</p>

<p>What does this function accomplish? </p>

<pre><code>void add2numbers(double a, double b) 
    { 
       double sum; 
       sum = a + b; 
    }
</code></pre>
