Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started