Hi
I am looking the practice example of function with no passing argument but but return char type in embedded programming. I know this type of function doesn't pass any argument but it return character.
we write this function like this
I understand the purpose of this type of function but I am looking some real example of this in embedded programming. Generally I want to know when we use this type of function in embedded programming. I searched little bit on google and i found example like keypad reading function. mean's read the keypad and return value that character key.
What could be simple example of that type of function in embedded programming ?
I am looking the practice example of function with no passing argument but but return char type in embedded programming. I know this type of function doesn't pass any argument but it return character.
we write this function like this
C:
char function (void)
{
char variable_name;
{
/* Program code */
}
return value;
}
What could be simple example of that type of function in embedded programming ?
Last edited: