Hello BA
Here is a question i was asked long time ago :
In an embedded system you have a software who run a function "test(char Data)" with a sigle static 8 bit register.
void test(char Data)
{
static char Reg;
char temp
/* your code start here use temp for data process */
......
......
......
......
/*your code end here */
Display(temp);
}
the main software call that function "test()" who calls a display routine , each time the function called an 8 bit data is trnsferd to the function
Your task is to write the contents of the function to show on the dispaly the mean of the last 10 function call's.
Good luck
Bobi