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, 23.06.2019 11:00
Sports and entertainment class, your goal is to increase attendance and make a profit for a game by getting your team on a winning track with total salaries less than $3,000,000
Answers: 3
question
Computers and Technology, 23.06.2019 21:10
Asample of 200 rom computer chips was selected on each of 30 consecutive days, and the number of nonconforming chips on each day was as follows: 8, 19, 27, 17, 38, 18, 4, 27, 9, 22, 30, 17, 14, 23, 15, 14, 12, 20, 13, 18, 14, 20, 9, 27, 30, 13, 10, 19, 12, 26. construct a p chart and examine it for any out-of-control points. (round your answers to four decimal places.)
Answers: 2
question
Computers and Technology, 24.06.2019 00:40
To maintain clarity and focus lighting might be needed
Answers: 2
question
Computers and Technology, 24.06.2019 09:30
Atype of researcher who uses computers to make sense of complex digital data
Answers: 1
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, 02.12.2020 02:50
question
Mathematics, 02.12.2020 02:50
question
Mathematics, 02.12.2020 02:50
question
Mathematics, 02.12.2020 02:50
question
English, 02.12.2020 02:50
Questions on the website: 13722367