subject

Create a new folder setxc and a new project lxc with main. cpp that does the following

1. declare an integer named ? num 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 ? num to 7
12. use iptrl to output the contents of ? num
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 ? num to 12
17-output the contents of ? num three times, first using iptrl, then using iptr2, then inum directly. in each case, identify what the user is seeing appropriately

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:20
Write a program that reads a file consisting of students’ test scores in the range 0–200. it should then determine the number of students having scores in each of the following ranges: 0–24, 25–49, 50–74, 75–99, 100–124, 125–149, 150–174, and 175–200. output the score ranges and the number of students. (run your program with the following input data: 76, 89, 150, 135, 200, 76, 12, 100, 150, 28, 178, 189, 167, 200, 175, 150, 87, 99, 129, 149, 176, 200, 87, 35, 157, 189.)
Answers: 3
question
Computers and Technology, 23.06.2019 05:20
Which operating system is a version of linux?
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
You wanted to look up information about alzheimer's, but you were unsure if it was spelled "alsheimer's" or "alzheimer's." which advanced search strategy would be useful? a) a boolean search b) using a wild card in your search c) trying different search engines d) doing a search for "alsheimer's not alzheimer's" asap. ill give brainlist.
Answers: 1
question
Computers and Technology, 24.06.2019 02:30
Write the pseudo code for this problem based on what you learned from the video. the purpose is to design a modular program that asks the user to enter a distance in kilometers, and then converts that distance to miles. the conversion formula is as follows: miles = kilometers x 0.6214
Answers: 3
You know the right answer?
Create a new folder setxc and a new project lxc with main. cpp that does the following

...
Questions
question
Mathematics, 06.01.2022 04:30
question
Mathematics, 06.01.2022 04:30
question
Mathematics, 06.01.2022 04:30
Questions on the website: 13722364