Question: QUESTION 1 Assume you are programming an embedded microcontroller in C and want your code to follow good software engineering practices, be as portable as

 QUESTION 1 Assume you are programming an embedded microcontroller in C

and want your code to follow good software engineering practices, be as

portable as possible and not be wasteful o memory. You need to

QUESTION 1 Assume you are programming an embedded microcontroller in C and want your code to follow good software engineering practices, be as portable as possible and not be wasteful o memory. You need to select a variable that can hold an integer from 0 to 164 What is the best choice for the variable type? QUESTION 2 Assume you are programming an embedded microcontroller in C and want your code to follow good software engineering practices, be as portable as possible, and not be wasteful of memory. You need to select a variable that can hold an ASCII value. What is the best choice for the variable type? QUESTION 3 Assume you are programming an embedded microcontroller in C and want your code to follow good software engineering practices, be as portable as possible, and not be wasteful of memory. You need to select a variable that can represent one of 389 different items. What is the best choice for the variable type? QUESTION 4 For the following embedded C program, select the variables that would be initialized before use #include #include #include void my_ func); uint8_t varA int8t varB 23, int main( uint8 t varC char varD-p while (1) //code omitted from example void my_func) Bool varE static int32_t varF; //code ommitted from example varA varB varC varD varE varF QUESTION 5 For the following embedded C program, select the variables that would are statically assigned a single fixed storage location for the duration of the program #include #include #include void worker() uint8_t varA 15 char varB int main int32 t varC char varD='s", while(1) l/code omitted from example void worker0) static uint8_t varE char varF /lcode ommitted from example varA varB varC varD varE varF

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!