demonstrate the use of pointers in c language 1

Relax! Stop worrying about deadlines and let our professional writers help you. Hire an essay writer helper and receive a professional assignment before your deadline. We provide writing services for all types of academic assignments.

Order a Similar Paper Order a Different Paper

Build a program that allows a user to select one of the following four menu options: enter new integer value, print pointer address, print integer address, and print integer value. For this program you will need to create two variables: one integer data type and one pointer. Using indirection, assign any new integer value entered by the user through an appropriate pointer.

I need help to fix my code:




int d=0, *dPtr;

char c; 


printf(“Menu Options:n”);

printf(“a. a new integer value.n”);

printf(“b. a pointer address.n”);

printf(“c. the address of an integer.n”);

printf(“d. the value of an integer.n”);

scanf(“%c”, &c);


case ‘a’:

printf(“Enter an integer:”);

scanf(“%d”, &d);


case ‘b’:

printf(“%p”, dPtr);


case ‘c’:

printf(“%p”, &d);


case ‘d’:

printf(“%dn”, d);




Great students hand in great papers. Order our essay service if you want to meet all the deadlines on time and get top grades. Professional custom writing is the choice of goal-focused students. Word on the online streets is... we're simply the best!

Get a 15% discount on your order using the following coupon code SAVE15

Order a Similar Paper Order a Different Paper