Question: Given the structure definition in a 32-bit environment: struct contact { char name[22]; char gender; int phone; } *y = 0; y=malloc(sizeof(struct contact)); printf(%d

Given the structure definition in a 32-bit environment: struct contact { char

Given the structure definition in a 32-bit environment: struct contact { char name[22]; char gender; int phone; } *y = 0; y=malloc(sizeof(struct contact)); printf("%d ", sizeof(y)); What value will be printed?

Step by Step Solution

3.36 Rating (159 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

In the given code snippet the structure contact is defined with t... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!