How many bytes are required to store the variables declared in the following C language code: void main(void){ // void is required since this is an embedded system char sample_nc; // character requires one byte int sample_ng; // integer requires two bytes struct { char name[10] ; int q_grade[5]; } test[4];

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter3: Data Representation
Section: Chapter Questions
Problem 7RQ
icon
Related questions
Question
How many bytes are required to store the variables declared in the followingC language code:
void main(void){ // void is required since this is an embedded system
// character requires one byte
// integer requires two bytes
char sample_nc;
int sample_ng;
struct {
char name[10] ;
int
q_grade[5];
} test[4];
Transcribed Image Text:How many bytes are required to store the variables declared in the followingC language code: void main(void){ // void is required since this is an embedded system // character requires one byte // integer requires two bytes char sample_nc; int sample_ng; struct { char name[10] ; int q_grade[5]; } test[4];
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Function Arguments
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning