void function_type_1(void) //No arguments, No return value void function_type_2(char) //1 argument, No return value char function_type_3(void) //No arguments, Returns a char char function_type_4(char) //1 argument, Returns a char
To be fair that question is as ambiguous as can be. Depending on your interpretation, one could argue there are only two types of function in C: user defined functions (i.e. those that you write) and library functions. Then the type can be sub-divided further in the way Papabravo has specified above, and in a similar way you have in your OP.In one of my exams the following question was asked:
# List the 4 types of functions in C.
Here are they referring to the 4 library functions in C namely math.h,string.h,stdio.h & stdlib.h?
|Thread starter||Similar threads||Forum||Replies||Date|
|J||mirroring by Virtual functions on same single interface||Automation, Robotics & Control||0|
|Manual to automatic steering whee swap. Reusing paddle shifters for other functions.||General Electronics Chat||5|
|Alternative to tab functions?||Feedback and Suggestions||3|
|Five Tips for Using Functions in C-Language Firmware||AAC Contributors Forum||0|
|V||Functions in C language||Programming & Languages||5|
by Jake Hertz