C LanguageFunction Parameters

Download C Language for free

Remarks

In C, it is common to use return values to denote errors that occur; and to return data through the use of passed in pointers. This can be done for multiple reasons; including not having to allocate memory on the heap or using static allocation at the point where the function is called.

Related Examples

Example of function returning struct containing values with error codes