Question: help Please Week 1 Introduction Week 1 Assignment Purpose: 1. Understand the pointer in C and know how to manipulate pointers. 2. Understand how to
Week 1 Introduction Week 1 Assignment Purpose: 1. Understand the pointer in C and know how to manipulate pointers. 2. Understand how to create a C program; compile and execute it. Description: Write a C program by implementing the following instructions: 1. declare three integer variables a1, b1, c1 2. declare three integer pointer variables pa1, p1, pc1 3. assign 18 to variable a, 10 to variable b 4. assign the address of variable a to variable pa 5. assign pa to pb 6. assign pa to pc 7. print out the values pointed by pa, pb, pc (dereferencing it) 8. assign the address of variable b to pa 9. print out the values pointed by pa, pb, pc (dereferencing it) 10. print out the values of pa, pb, pc Note: the format specifier for an address (pointer), you can use %p What should be submitted: 1. Run the program and submit a snapshot of successful program execution. (For Windows OS, use Snipping Tool to take a snapshot.) 2. Explain the difference between printing out pa and Spa 3. Add a new statement to print out the value of variable at the address of variable a1, the size of variable a1. 4. A.c file that contains the complete source code of the program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
