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|
|B||Walsh Functions for RMS calculation||Microcontrollers||1|
|T||Functions to operate a 7 Segment display on a PIC Controller||Microcontrollers||35|
|CADENCE is disabling functions alone||Homework Help||1|
|Five Tips for Using Functions in C-Language Firmware||AAC Contributors Forum||0|
|V||Functions in C language||Programming & Languages||5|
by Steve Arar
by Luke James
by Gary Elinoff