Category:C: Difference between revisions

m
Line 44:
 
===Functions===
A function is made up of three parts: its return valuetype, 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.
int sum(int a,int b) //This is the function "sum," which takes two integer arguments and returns an integer.</lang>
1,489

edits