Question: Programming in C language to be run on code blocks on Windows Homework 6 1. (Basic Pointers and Pointer Arithmetic) Write a program that will

Programming in C language to be run on code blocks on Windows
Homework 6 1. (Basic Pointers and Pointer Arithmetic) Write a program that will do the following 1. Create two integer variables x and y, and an integer array z 2. Set the variable x equal to 5, and the variable y equal to 10 3. Save the following values in the array: 1,2, 4, 8, 16 4. Print to screen the address of each of the variables, x, y, and the start of the arrayz 5. Create a pointer named testPtr and point it to the variable x 6. Print to screen the value stored in variable x using only your pointer testPtr 7. Add six to the value stored in x using only your pointer testPtr 8. Print to screen the value stored in variable x using only your pointer testPtr 9. Test to see if the value stored in variable x is larger than y, using only the variable y and l5] the testPtr. If it is, print to screen "x > y", otherwise print "y
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
