Category:C: Difference between revisions
Content added Content deleted
Puppydrum64 (talk | contribs) m (→Assignment) |
Puppydrum64 (talk | contribs) m (→Functions) |
||
Line 44: | Line 44: | ||
===Functions=== |
===Functions=== |
||
A function is made up of three parts: its return |
A function is made up of three parts: its return type, its name, and its arguments. |
||
<lang C>int main(void) //This is the function "main," which takes no arguments and returns a 32-bit signed integer value. |
<lang C>int main(void) //This is the function "main," which takes no arguments and returns a 32-bit signed integer value. |
||
int sum(int a,int b) //This is the function "sum," which takes two integer arguments and returns an integer.</lang> |
int sum(int a,int b) //This is the function "sum," which takes two integer arguments and returns an integer.</lang> |