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
. ____________is/are the JSP ImplicitObject(s).sessionapplicationconfigAll of GivenNone of Given
Lynna [10]

Answer:

All of Given

Explanation:

JSP provides a number of implicit objects which are made available by the container and can be used directly in scriptlets. These objects include:

  • session
  • application
  • config
  • out
  • request
  • response
  • pageContext
  • page
  • exception

Example usage:

<% session.setAttribute("userid","demoid"); %>

<% application.getContextPath(); %>

<% out.println(config.getServletName()); %>

5 0
4 years ago
someone can help plz " Provide definitions for the following terms: bit, byte, kilobyte (KB), megabyte (MB), gigabyte (GB), Tera
densk [106]

Answer:

Explanation:

Bit: A bit (short for binary digit) is the smallest unit of data in a computer. A bit has a single binary value, either 0 or 1.

Byte: A byte is a data measurement unit that contains eight bits, or a series of eight zeros and ones.

Kilobyte: A KB (kilobyte) is 1000 bytes.

Megatype: An MB (megabyte) is 1000 kilobytes.

Gigatype: A GB (gigabyte) is 1000 megabytes.

Terabyte: A TB (terabyte) is 1000 gigabytes.

hope this helped you!

4 0
3 years ago
Help Menu is available at which button in the keyboard?
kvasek [131]
Answer: It should be F1.
6 0
4 years ago
Is it possible to learn java s. and c# at the same time? if so I need help who can assist me.
Orlov [11]

Answer:

Both are imperative OOPS. They support classes and objects, and all OOPS features. And you need to learn the same concept in both cases. I am mentioning some of the toughest parts. They support multi-threading, both. And they also support exception handling. And you will find that both languages are different slightly. Also, the syntax of class, objects, inheritance, etc only differs a little. And that is why you can learn both at a time. And with a little more effort, you can learn c++ as well. And in fact, you should first learn C++, and then Java, C# and finally Python.

Explanation:

Please check the answer.

4 0
3 years ago
A circuit rated at 6600 watts and 240 volts will draw what ampers.
scZoUnD [109]

Your Answer Is More Than Likely 27.50A


6 0
3 years ago
Other questions:
  • Which icon will automatically adjust the amount of space between letters from very tight to very loose in style? Hyphenation, Te
    6·2 answers
  • Are there protections for people in terms of what data can be collected by different sites?
    10·1 answer
  • Digital information is stored using a series of ones and zeros. Computers are digital machines because they can only read inform
    15·1 answer
  • What command will disable dns lookup to prevent the router from attempting to translate incorrectly entered commands as though t
    6·1 answer
  • A bank system mainframe is struck by a DDoS attack and goes offline. Customer’s cannot log on to their accounts. Which element o
    11·1 answer
  • In each iteration, selection sort (small) places which element in the correct location?
    9·1 answer
  • What are programming paradigms?​
    9·1 answer
  • Let A be an array of n numbers. Recall that a pair of indices i, j is said to be under an inversion if A[i] &gt; A[j] and i &lt;
    11·1 answer
  • A developer has been asked to create code that will meet the following requirements: Receives input of: Map, List Performs a pot
    13·1 answer
  • What are some disadvantages of using a word processor over a type writer?​
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!