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
Katie wants to use VLOOKUP for a column in a table. Which value of the mode parameter should she use to look for an exact match
Lapatulllka [165]

The exact match mode is the mode parameter that Katie should use to look for an exact match of the searched data

Further Explanation:

The VLOOKUP function in Excel helps us search for and retrieve information from a particular column in a table and lookups a value in the left-most column of the table. It has two modes of matching.

Exact matching – When you perform a range_lookup, an argument FALSE is defined to mean that there is an exact match of the return value.

  • To achieve this, select a cell in your Excel worksheet
  • Type =VLOOKUP in the type bar of the Excel sheet
  • Select the value to look up and then select the data range
  • Type the column number that you want to search and then type FALSE
  • Press enter

Learn about VLOOKUP in Excel by clicking the links below

brainly.com/question/9579933

brainly.com/question/10686097

#LearnWithBrainly

4 0
4 years ago
Which functions return a logical value (TRUE or FALSE)?
Ludmilka [50]

Answer:

Functions with a boolean return type.

Explanation:

If the return type is boolean, the only possible values are true or false.

8 0
4 years ago
HELP ME PLZ QUICK Adam is writing a program that: 1) has the user guess a number, and 2) tells the user how many guesses it took
topjm [15]

Adam might have forgotten to loop the guessing code, meaning that instead of letting him guess multiple times, it simply does it once and ends the program. This could be fixed by adding a while loop, or something of the sort, that doesn't let the user finish the program until they guess the number correctly, while adding to the variable that stores the number of guesses each loop.

8 0
4 years ago
In the development stages where an application is not yet sufficiently mature enough to be able to be placed into a test environ
Kitty [74]

Answer:

A and C

Explanation:

8 0
3 years ago
Your Windows PC has an AMD processor installed that includes AMD-V technology and the motherboard fully supports this processor.
Ray Of Light [21]

Answer:

Microsoft Hyper-V Server

Explanation:

3 0
4 years ago
Other questions:
  • Elsa has collated information for a meeting using Excel. Due to certain developments, some of the data in her worksheet is now r
    6·1 answer
  • The security administrator for PLABS.com recommends using a host-based firewall for all servers and workstations. What can a hos
    6·1 answer
  • What at some advantages of creating a powerpoint?
    9·1 answer
  • Data bars describe a graphic element that
    9·2 answers
  • What does editing refer to
    6·2 answers
  • Read the following scenario and decide who, if anyone, is committing sexual harassment:
    13·2 answers
  • A user on a corporate laptop discovers that their bank account and social media accounts have all been hacked. The user has high
    12·1 answer
  • What is the full form of IE? ​
    9·1 answer
  • How many 16-byte cache blocks are needed to store all 64-bit matrix elements being referenced using matlab's matrix storage?
    15·1 answer
  • What is the difference between applying risk measures for insurance purposes versus applying risk measures for compliance? Provi
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!