c / beginner
Snippet
Function Parameters
Parameters act as placeholders for values passed into a function. This allows the same function to work with different data every time it is called.
snippet.c
1
void displayValue(int num) { printf("Value: "); printf("%d", num); }
Breakdown
1
void
Indicates that this function does not return a value.
2
(int num)
Defines an integer parameter named num that the function expects to receive.