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
stich3 [128]
3 years ago
6

Write the definition of a function named swapints that is passed two int reference parameters. The function returns nothing but

exchanges the values of the two variables. So, if j and k have (respectively) the values 15 and 23, and the invocation swapints(j,k) is made, then upon return, the values of j and k will be 23 and 15 respectively.
Computers and Technology
1 answer:
Alja [10]3 years ago
3 0

Answer:

void swapints(int *j,int *k)//Function definition.

{

   *j=*j+*k-(*k=*j); //value swapping.

}

swapints(&j,&k);//call the function.

Explanation:

  • The above function definition takes the address of j and k variables which is stored on the pointer variable j and k.
  • Then the pointer variable uses the j and k value for the above expression, and the user does not need to return the value of j and k.
  • But when the user prints the value of the j and k variable, then he gets the swapping value of the j and k variable.
  • The user needs to know that the "int j" is a normal variable, but "int *j" is a pointer variable that is used to take the address of j variable.
You might be interested in
How to add a second screen to your computer?
kkurt [141]
All you have to do is have an available video port on your computer that's compatible with your second monitor (or get an appropriate adapter).  Once it's powered on, Windows should automatically detect the second screen, BUT it won't do anything until you tell it to - which means you may not see the second screen show anything from Windows and that's normal.

To access the 2nd screen once windows finds it, then you have to hit the Start and the letter, "P" at the same time and it will show you your options.  I usually use the expand option. Some people like the duplicate option to show off. Or you can make your other monitor your primary and turn the original one off. All your call!
3 0
4 years ago
Which model represents scenarios thatchange over time?
Alex17521 [72]

Answer: Dynamic models represents scenarios that changes over time.

Explanation:

As, dynamic model is used to represent the scenarios and the behavior of an object or structure over time. It is used to describe the one or more elements over the time as a set of states that occurred in a proper sequence. Dynamic model is the simple representation of real world entity.

7 0
3 years ago
Put these numbers in order from smallest to largest:<br> 1. 00101112<br> 2. 011110<br> 3. 011110112
Rina8888 [55]
The answer to this question is 3,2,1
8 0
3 years ago
Read 2 more answers
6. Which of the following options is used to view a computer's memory properties?
pentagon [3]
There is an option used to vew a computer's memory properties by just simply opening your My computer directory. There you can see different names of your hard drive, there you choose what hard drive you want to view by just right clicking it and choosing properties. There you will see it's memory space.
3 0
4 years ago
Which factor helps drive globalization?
Kipish [7]

Containerisation. The costs of ocean shipping have come down, due to containerisation, bulk shipping, and other efficiencies. ...

Technological change. ...

Economies of scale. ...

Differences in tax systems. ...

Less protectionism. ...

Growth Strategies of Transnational and Multinational Companies.

7 0
3 years ago
Other questions:
  • Write a program to read in a two values row and col to initialize a 2D array using those values. Then create a function FindTran
    15·1 answer
  • Lionel wants to find images of colonies of Emperor penguins to use for a school project. Which of the following phrases should h
    15·1 answer
  • Reversing the elements of an array involves swapping the corresponding elements of the array: the first with the last, the secon
    11·1 answer
  • A device that converts sound waves into an electronic signal that is transmitted through wires is a _______ transmitter.
    7·1 answer
  • Was Google right to have entered the Chinese market the way it did? Did Googleâs mission compel it to create Google.cn? What spe
    9·1 answer
  • Please help ASAP, will mark brainliest!
    7·1 answer
  • private members of a class are accessible only from _____________ of the same class or from their friends
    12·1 answer
  • If you were an architect planning on building a large scale Municipal complex what type of engineer would you identify as essent
    10·1 answer
  • Responsible manner in video and audio conferencing​
    15·1 answer
  • To set up scenarios,then set up a list, then set up the reference cell. to set up the cells that display the output results from
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!