Functions C
Functions C
C
What is A Function?
• Function is a group of statement that together
perform a specific task enclosed within curly
brackets ({})
• We divide a code into separate functions
• Every program have at least one function,
example main() For execution of the program
• Thus,collection of functions creates a program
• Functions usually take in data, process it and
return a result
• It can be used over, over and over again
Advantages of function