Computers and Technology

5. what is printed by the following code fragment?

int x = 5, y = 3, *p = & x, *q = & y;

std: : cout < < "x = " < < x < < ", y = " < < y < < '\n';

x = y;

std: : cout < < "x = " < < x < < ", y = " < < y < < '\n';

x = 7;

std: : cout < < "x = " < < x < < ", y = " < < y < < '\n';

*p = 10;

std: : cout < < "x = " < < x < < ", y = " < < y < < '\n';

p = q;

*p = 20;

std: : cout < < "x = " < < x < < ", y = " < < y < < '\n';

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 06:20, Ab20600
Which text function capitalizes the first letter in a string of text? question 10 options: upper capital first proper
Answers: 1
image
Computers and Technology, 23.06.2019 18:00, taiyana74
Ramona enjoys her job because she is able to kids in an after school program. the work value ramona feels strongest about is a. leadership b. risk c. independence d. work with people select the best answer from the choices provided a b c d
Answers: 1
image
Computers and Technology, 23.06.2019 19:00, jaymc1932
Whose task it is to ensure that the product flows logically from one step to another?
Answers: 3
image
Computers and Technology, 24.06.2019 00:40, ndurairajownkpq
What social factors affect your health
Answers: 3
Do you know the correct answer?
5. what is printed by the following code fragment?

int x = 5, y = 3, *p = & x, *q =...

Questions in other subjects:

Konu
Mathematics, 03.06.2021 23:00
Konu
Mathematics, 03.06.2021 23:00