Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

image text in transcribed

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals Design

Authors: Marion Donnie Dutton Don F. Seaman

14th Edition Globel Edition

1292107634, 978-1292107639

Students also viewed these Databases questions

Question

Given find the value of b. (3e (3ex + 6e-2x) dx = 0,

Answered: 1 week ago

Question

understand the key issues concerning international assignments

Answered: 1 week ago