Categories of user defined function - tccicomputercoaching.com

Page 1

Categories of user defined function tccicomputercoaching.com Here, we will learn about category of functions in C programming language. These categories depend on Parameter and function parameter. A parameter is a variable that we use in a function definition. An argument is the actual data that we pass to the function parameter.

Example: #include <studio.h> //Function declaration int getsum(int, int); int main(void) { /** * We are calling the getArea() function * The arguments passed to the function are 10 and 20. */ int area = getsum(10, 20); //output printf("Sum: %d\n", sum); return 0;


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.