Question: Please Use Microsoft Visual Studio to write a code in C for the following Problem: 1. Write a program that displays the usage(declare, initialize and
Please Use Microsoft Visual Studio to write a code in C for the following Problem:
1. Write a program that displays the usage(declare, initialize and print) of three types of constants in C, namely literal #define and const using printf statements.
2. For each of the following, write a single statement that performs the indicated task. Assume that integer variable i has been defined and the i has been initialized to 5.
a. Define the variable IPtr to be a pointer to an object of type integer.
b. Assign the address of variable i to pointer variable IPtr.
c. Print the value of the object pointed to by IPtr.
d. Print the address of i.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
