Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C Programming You may assume that sizeof(char)=1, sizeof(int)=4, sizeof(float)=8, sizeof(long)=16. Given the declarations struct NEW_S { char az[30]; int bs[2]; long cc; }; struct NEW_B

C Programming

You may assume that sizeof(char)=1, sizeof(int)=4, sizeof(float)=8, sizeof(long)=16.

Given the declarations

struct NEW_S

{

char az[30];

int bs[2];

long cc;

};

struct NEW_B

{

char dd[50];

struct NEW_S mm;

float ee;

long ff[3];

};

void main (void)

{

struct NEW_S f1[4];

struct NEW_S rr;

struct NEW_B f2[5];

struct NEW_B s0;

}

Match the values of the following:

sizeof(f1)

sizeof(rr)

sizeof(f2)

sizeof(f1[3])

sizeof(s0)

sizeof(f1[0].az[0])

sizeof(s0.mm)

sizeof(rr.bs[1])

sizeof(f2[4].dd[3])

sizeof(rr.ff[1])

A.54

B.1

C.2

D.180

E.216

F.16

G.800

H.8

I.4

J.160

K.Value is not on the list

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

Introduction to Wireless and Mobile Systems

Authors: Dharma P. Agrawal, Qing An Zeng

4th edition

1305087135, 978-1305087132, 9781305259621, 1305259629, 9781305537910 , 978-130508713

More Books

Students also viewed these Programming questions