Greenies, I've stuck by you for so long and made so many excuses for the bad service, now I'll go to mojo bones or poppas. Carrie L. and 2 others voted for this review Useful 3
Functions[edit] A function, which can also be referred to as subroutine, procedure, subprogram or even method, carries out tasks defined by a sequence of statements called a statement block that need only be written once and called by a program as many times as needed to carry out the same task.
defining a function is where you actually provide a definition (what the function actually does) between { } like so: //this is a definition int addTwo(int a, int b) { return a + b }. declaring a function is simply telling the compiler about the function. You let it know it exist by providing the name, the return type, and the number of / type of arguments.