subject

DESCRIPTION Write a program that:
Declare an int named x with value of 99
Declare a pointer to that int
Declare a reference to that int
Call displayint (see below), pass the pointer to x and the reference to X
Use the pointer to change the value of x to 100
w
Call displayint
Use the reference to change to value of x to 100
Call displaylnt
displayint is a function that accepts two parameters, la pointer to an int, 2 a reference to an int
The function should display the value that the pointer points to and the value that the reference refers to.
The output of this program should look like this:
99
99
100
100
101
101
First two lines: original value of x
Second two lines: after value of x has been set to 100
Last two lines: after value of x has been set to 101.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 01:30
Imagine that you have a friend who is starting a small business and is interested in using social media to spread the word. he is not certain that it is a good move, and has come to you for . would you advise him to use social media to advertise his business? why or why not? support you answer with information from the text.
Answers: 1
question
Computers and Technology, 22.06.2019 06:30
Exchanging which type of data uses the least bandwidth? music photographs video voice bandwidth- the amount of data that can be moved between two points in a set time period
Answers: 1
question
Computers and Technology, 23.06.2019 08:30
Helen's credit card has an apr of 15.32% and a grace period of 17 days and helen pays her balance in the full every month. if her last billing cycle ended on september 26, 2009, and she made her payment on october 11, 2009, did she owe any interest on her last statement's balance?
Answers: 3
question
Computers and Technology, 23.06.2019 09:00
Before you record your own voice, you should a. record other people's voices b. warm up and practice difficult names c. listen to your favorite songs d. read a transcript of a good radio news segment
Answers: 1
You know the right answer?
DESCRIPTION Write a program that:
Declare an int named x with value of 99
Declare a point...
Questions
question
Mathematics, 05.02.2020 09:44
Questions on the website: 13722367