Question: 1. Write a program to declare and initialize an integer variable num with value 10. Declare a pointer variable and point it to variable num.

 1. Write a program to declare and initialize an integer variable

1. Write a program to declare and initialize an integer variable num with value 10. Declare a pointer variable and point it to variable num. Using the pointer, access the content of variable num and add it with 2. Using printf statements, show: a) the content of variable num b) the content of variable the pointer is pointing to c) the address of variable num d) the address stored in the pointer variable (Hint: *pointer = *pointer + 2:]

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!