Category:C: Difference between revisions
Content added Content deleted
Puppydrum64 (talk | contribs) |
Puppydrum64 (talk | contribs) m (→Assignment) |
||
Line 80: | Line 80: | ||
int c = sum(a,b); |
int c = sum(a,b); |
||
//declare the integer variable "c". |
//declare the integer variable "c". |
||
//Define it to equal the output of the function sum using the previously defined variables "a" and "b" as arguments. |
//Define it to equal the output of the function sum using the previously defined variables "a" and "b" as arguments. |
||
//When this line of code is executed, the computer will perform the function "sum(a,b)" and store the result in c. |
|||
//This is only valid if the return type of the function "sum" matches the type of the variable "c."</lang> |
//This is only valid if the return type of the function "sum" matches the type of the variable "c."</lang> |
||