1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Lerok [7]
3 years ago
6

The variables xp and yp have both been declared as pointers to integers, and have been assigned values. Write the code to exchan

ge the two integers
Computers and Technology
1 answer:
shepuryov [24]3 years ago
6 0
The question is asking us to swap the values of xp and yp while not changing where they point to. Setting xp equal to yp would not work because then we couldn't change yp since the value for xp was overwritten. We can use a third variable to swap them.

int zp = xp;
xp = yp;
yp= zp;
You might be interested in
Marketing có phải là bán hàng hay không? Giải thích?
barxatty [35]

Answer:

Sự khác biệt giữa bán hàng và tiếp thị là bán hàng tập trung vào làm việc trực tiếp với khách hàng tiềm năng để khiến họ chuyển đổi, trong khi tiếp thị tập trung vào việc khơi dậy sự quan tâm đến sản phẩm của bạn.

7 0
3 years ago
Read 2 more answers
In a programming language, a(n) ______, or command, is a word with a predefined meaning​
aniked [119]
<span>In a programming language, a keyword, or command, is a word with a predefined meaning​</span>
6 0
4 years ago
Read 2 more answers
PLEZ ANSWER QUICK
harina [27]
The answer is URL. ........
7 0
3 years ago
Read 2 more answers
What is a characteristic ofa good cloud-based hosting?
Aliun [14]

Answer:

Explanation:

A good cloud-based hosting has many beneficial characteristics, some of which include on-demand self-service, broad network access, and being very elastic and scalable. These characteristics allow for a large number of users to benefit from the service at any time of the day and at a very fast speed due to the broad network access.

6 0
3 years ago
9. In a 208-volt Y-connected system, what is the voltage drop between any phase wire and the grounded
Tomtit [17]
The answer is B. 180 VAC
8 0
2 years ago
Other questions:
  • The key requirement in selection of the facilitator is one who is the end-user.
    8·1 answer
  • What is an efficient way to ensure that the code is working as per the acceptance criteria/business requirements? (1 correct ans
    11·2 answers
  • Witch of the following is a valid why a scientist might a scientific theory
    13·1 answer
  • the one disadvantage of a digital vom is a. difficulty in reading the lcd display. b. long scan times sometimes miss quickly cha
    6·2 answers
  • Which image-editing tool can be used to help remove spots and other marks from an image?
    13·1 answer
  • What kind of animation is used in the powerpuff girls show??
    9·1 answer
  • How to change your username in brainly​
    12·2 answers
  • In a FOR loop, if you declare a variable in the initializer, it exists only inside of the FOR loop.
    6·1 answer
  • List different examples of models​
    5·1 answer
  • Which of the following types of tasks are comparatively easy for artificial intelligent systems?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!