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|
|Using INCLUDES, FUNCTIONS PROCEDURES and SUBROUTINES in Oshonsoft||Microcontrollers||52|
|Designing a calculator with specific functions||Homework Help||12|
|N||How to prevent unused functions from operating?||Microcontrollers||10|
|Five Tips for Using Functions in C-Language Firmware||AAC Contributors Forum||0|
|V||Functions in C language||Programming & Languages||5|