Professional Documents
Culture Documents
FACULTY OF SCIENCE
GROUP 8
Output:
Enter 5 integer
numbers1
2
3
4
5
Array elements are:
5
4
3
2
1
16. What is a function?
A function is a block of code that performs a specific task.
A function is also a group of statements that together perform a task. Every c program has at
least one function, which is main(), and all the most trivial programs can define additional
functions.
Types of functions
There are two types of functions in C programming:
Standard library functions
User-defined functions