logo

Crowdly

¿Qué tamaño tienen las estructuras dat1 y dat2? ------------------------------...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

¿Qué tamaño tienen las estructuras dat1 y dat2?

--------------------------------

#include <stdio.h>

struct data1{

char c;

int l;

long int d;

};

struct data2{

int l;

long int d;

char c;

};

int main(){

struct data1 dat1={0xa0,0xc3c2c1c0,0xd7d6d5d4d3d2d1d0};

struct data2 dat2={0xc3c2c1c0,0xd7d6d5d4d3d2d1d0,0xa0};

printf("Size of struct dat1: %d\n", sizeof(dat1));

printf("Size of struct dat2: %d\n", sizeof(dat2));

}

--------------------------------

100%
0%
0%
0%
More questions like this

Want instant access to all verified answers on campusvirtual.uclm.es?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!