Answer:
answer is given below
Step-by-step explanation:
Declaration for garnet
- void garnet(char,int (*f)(int));
- void - garnet return nothing
garnet accepts two parameters
- 'Char'
- function
Function as a parameter
and here
first int refers return type of function
- (*f) function as pointer variable
second int
- arguments that accept by inner function- function as a parameter
so here Garnet is a function that accepts two parameters. One parameter that contains the character and another parameter that takes an argument (here I am taking an integer) and returns an integer. Function The function returns nothing. Zero is mentioned here.