subject
Computers and Technology, 25.11.2019 19:31 hdjehd

Pointer instructions create a new folder setxc and a new project lxc with main. cpp that does the following: 1. declare an integer named inum with initial value 9
2. declare a double named dnum with initial value 14.25
3. declare two pointers to integers named iptr1 and iptr2
4. declare a pointer to a double named dptr.
5. assign the address of inum to iptr1
6. output the address of inum and be sure to identify to the user what you are displaying. there are two ways you can do this; you should do both, to convince yourself they are the same.
7. use iptr1 to display the contents of inum
8. try to assign the address of dnum to iptr1. what error message do you see? comment out this bad line of code, but include the error message as a comment directly below.
9. assign the address of dnum to dptr.
10. output the address and then the contents of dnum (using dptr)
11. directly change the value of inum to 7.
12. use iptr1 to output the contents of inum
13. assign iptr2 to have the same value as iptr1. do not reference inum; instead use the address stored in iptr1
14. output the address in iptr2. this should be the same as displayed in step 6
15. output the value pointed to by iptr2
16. using iptr2, change the contents of inum to 12.
17. output the contents of inum three times, first using iptr1, then using iptr2, then inum directly. in each case, identify what the user is seeing appropriately.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:30
When creating a budget, log fixed expenses before income. after income. after savings. at the top.
Answers: 1
question
Computers and Technology, 23.06.2019 06:00
When is a chart legend used a. all the time b. whenever you are comparing data that is the same c. whenever you are comparing multiple sets of data d. only for hand-drawn charts
Answers: 2
question
Computers and Technology, 23.06.2019 15:00
Plz ( which is an example of a good url?
Answers: 1
question
Computers and Technology, 24.06.2019 02:00
Read the following scenario, and then answer the question below. you want to send an e-mail to your boss requesting a meeting to discuss a raise. what is the best example of an e-mail to an employer about this meeting? “hey jason. can we chat about getting me more money soon? let me know. peace, meg.” “hello jason. pardon me for sending yet another e-mail today about my need to talk to you about my position and a possible pay increase. i am dying to know when you can talk. sincerely, meg.” “hello jason. i have been with the company for one year and have taken on more responsibilities than outlined in my job description. i would appreciate an opportunity to speak with you about my position. let me know when we can schedule a meeting. you, meg.” “greetings jason! i hope this e-mail finds you well and happy today. i really, really want to talk to you about something important. i am not sure if you have time. i hope you do. get back in touch with me and let me know when we might talk. ever so much for taking the time to read this. sincerely, meg.”
Answers: 3
You know the right answer?
Pointer instructions create a new folder setxc and a new project lxc with main. cpp that does the fo...
Questions
question
Biology, 25.06.2019 01:30
question
History, 25.06.2019 01:30
Questions on the website: 13722361