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 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
Get step-by-step solutions from verified subject matter experts
