Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Write a C statement for each of the following. (4 pts) a. Declare an integer called total, initialize it to 10 b. Declare a
1. Write a C statement for each of the following. (4 pts) a. Declare an integer called total, initialize it to 10 b. Declare a pointer to an int called ptr and set it to point to tota c. Set the value of total to 20 using ptr d. Print the memory address of total using total e. Print the memory address of total using ptr f. Create a new pointer qtr and let it point to total using ptr g. Make qtr point to integer result (assume already result declared) h. Double the value of result using qtr 2. Write a statement to (1.5 pts) a. Assign character 'Z' to the variable pointed to by char pointer answer b. Change the value of variable pointed to by char pointer choice to next character c. Print the value of char pointer
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started