Course Solutions Uncategorized (Solved) : 1 Enter Run Following Program Show Values Printed Answer Questions Follow Include Main Int Q29919262 . . . .

(Solved) : 1 Enter Run Following Program Show Values Printed Answer Questions Follow Include Main Int Q29919262 . . . .

 

1. Enter and run the following program. Show the values printedand answer the questions that
follow.

#include<stdio.h>
main(){
int x = 5;
int *ptr_x;
ptr_x = &x;
printf(” The value of x is %d”, x);
printf(“n The value of *ptr_x is %d”, *ptr_x);
printf(“n The address of x is %X”, &x);
printf(“n The value of ptr_x is %X”, ptr_x);
printf(“n The address of ptr_x is %X”, &ptr_x);
printf(“n The value of ptr_x +1 is %X”, ptr_x+1);
*ptr_x = 10;
printf(“ nThe new value of x is %in”, x);

}

What can you say about the value of x and the value of *ptr_x ?________________

What can you say about the address of x and the value of

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post