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
PayPal Gateway not configured
PayPal Gateway not configured