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 04:00
Which spereadsheet type will determine how well a bussiness has done over the past year
Answers: 1
question
Computers and Technology, 22.06.2019 16:10
Drag each label to the correct location on the imagelist the do’s and don’ts of safeguarding your password.keep yourself loggedin when you leave your computer.don’t write your password down and leave it whereothers can find it.share your password with your friends.each time you visit a website,retain the cookies on your computer.use a long password with mixed characters.
Answers: 1
question
Computers and Technology, 22.06.2019 19:00
If your accelerator suddenly gets stuck what should you do
Answers: 2
question
Computers and Technology, 24.06.2019 03:30
The footer area of a web page generally houses which website feature? terms of use web page content business name or title menu headings
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