Question: / / TASK 1 : Include the appropriate files. int main ( int argc, char * * argv ) { int 3 2 _ t

// TASK 1: Include the appropriate files.
int
main(int argc, char** argv)
{
int32_t x=3377
// TASK 2:
// Understand the assignment statements below.
// Do not modify them.
// Appropriately define the variables p, a, m, z, t
p=&x;,//p now contains the addr of x
a=&p;
m=&a;
z=&m
t=&z
// TASK 3:
// Your next task is to print the value of x by
// recursively deferencing the above variables.
// Complete the printf statments below.
// The variable used should be as per the description
// of the printf
printf("x by recursive deref. of p:%d?
,quad;
printf("x by recursive deref. of t:%d?
, ; ;
printf("x by recursive deref. of m : %d ??
?'',);
printf ("x by recursive deref. of z:%d|n,',);
printf("x by recursive deref. of a: %d ??
?'',);
char*C;
// TASK 4:
// Find the sizes of c and p
// Complete the statements below. Hint: sizeof()
printf("size of c%d?
,);
printf("size of p%d ??
?'',);
// TASK 5:
// What do you observe? c and p are pointers to two
// different types. Are their sizes different?
// Write a brief note justifying your observation
// at the bottom of the file.
// Make sure it is commented.
return EXIT_SUCCESS;
8}
return EXIT_SUCCESS;
0/* your observation below
 // TASK 1: Include the appropriate files. int main(int argc, char**

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!