Created: 2023-01-11 16:47
Status: #concept
Subject: Programming
Tags: C Function
Function Prototype
In C, a Function Prototype allows us to Initialize the function parameters' C Data Type and return type of a function before using it in our code.
Syntax
-
<return type> functionName(...parameters);
-
We can omit parameter Identifiers during Function Prototypes.
-
We have to remember to define the actual Function later on the program, typically after the
main()
body of code.
References
- C Programming, A Modern Approach, 2nd Edition, Chapter 9.2