- All C programs must contain a main() function.
- The operating system calls main function of a program from where program's execution starts.
- One function can call another function.
- C functions can be called with or without arguments depending on function declaration.
- We can create any number of functions in a C program.
- C Functions can be invoked from anywhere within a C program.
- We can call a function any number of times in a C program.
- Function name should be unique in a C program.
- A function declaration in C tells the compiler about function name, function parameters and return value of a function.
- C function can return only one value to the calling function.
- C functions may or may not return values to calling functions depending on the return type defined in function declaration. Void data type is used when the function does not return any value. By default the return type of a function is integer(int).
- There are two types of functions in C, library functions and User defined functions.
- When a function terminates, program control is returned to the calling function from where it is called.
- Execution of a C program comes to an end when there is no functions or statements left to execute in main function body.
C Programming Function Facts
Here are some interesting Facts About Functions in C programming language.
Interesting Facts About Functions in C