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
Murrr4er [49]
3 years ago
10

Write the definition of a function named maxmin that is passed four int arguments. The function returns nothing but stores the l

arger of the first two arguments in the third argument it receives and the the smaller of the first two arguments in its fourth argument. So, if you invoke maxmin(3,7,x,y), upon return x will have the value 7 and y will have the value 3.

Computers and Technology
1 answer:
photoshop1234 [79]3 years ago
6 0

Answer:

To get the values in x and y, we should use the pass -by -reference method. Where a reference to the actual variable is created in the called function. When we update the value inside the called function, it reflects in the calling function.

C++ code:

#include<iostream>

using namespace std;

void maxmin(int p, int q, int &r, int &s);

int main()

{

int k,l,x,y;

 

cout<<"Enter two integers for k and l: ";

cin>>k>>l;

 

maxmin(k, l, x, y);

 

cout<<"The maximum of two numbers is: "<<x<<endl;

cout<<"The minimum of two numbers is: "<<y<<endl;

}

void maxmin(int p, int q, int &r, int &s)

{   //r and s holding the address of x and y respectively.

if(p>q)

{

 r=p;

 s=q;

}

else

{

 r=q;

 s=p;

}

}

Explanation:

The program shows how the method is working and the output is

You might be interested in
Whats 400000 time 93823
Fynjy0 [20]
Its 375,292,000,00





Yay.....
7 0
3 years ago
Read 2 more answers
Question 19 :A user needs the video capability in his computer upgraded to support a new graphics application. The computer incl
elena-s [515]

Answer:

The onboard video card should be disabled in the BIOS. After you disable the onboard video card in the BIOS, it will no longer function.

Explanation:

Since in the question a user wants to upgrade for new graphics application and also the computer involves the onboard video card and a new video card is installed in the computer now you want to disabled it

So this can be done in the BIOS i.e basic input output system which is to be used for rebooting the computer system

And after disabled it, you cannot used.

3 0
3 years ago
A(n) _________ is any system resource that is placed onto a functional system but has no normal use for that system. If it attra
Kisachek [45]

Answer:

Honeytoken

Explanation:

Honeytokens (aka honey traps or honeypots) may be described as bogus or dummy IT resources which are created or placed in a system or network for the sole purpose of attracting the attention of cyber-criminals and being attacked. These might be servers, applications, complete systems or datasets which are placed online (via the public internet, or a public-facing gateway to a private network), in order to attract cyber-attackers.

Honeytokens may be specifically defined as pieces of data which on the surface look attractive to potential attackers, but actually have no real value – at least, not to the attacker. For the owners of the tokens (i.e. the people who set the trap), they can be of great value, as they contain digital information which is monitored as an indicator of tampering or digital theft.

8 0
3 years ago
Which of the following is NOT one of the most important elements when designing a website?
Dmitriy789 [7]
Screen resulution Hope this helps
7 0
3 years ago
Read 2 more answers
Can someone help me with this 1 writing question?!! please!
Romashka-Z-Leto [24]
If the topic of what you will be writing is covered by the site produced by a reputable university, then you may use it as long as you include it in your paper for copyright purposes, like in your bibliography or footnotes in any case. Since the site is made from a "reputable" university and I emphasis the word in quoted marks, that it is legit and proven to be valid because a famous university will not try anything to squander their reputation, hence the issue of whether it is true or not has less doubt than any other site with no credentials. 

So, yes. You may use that option as long as the content is what you've been looking for. 
4 0
3 years ago
Read 2 more answers
Other questions:
  • Which of these words could byte pair encoding compress the most?
    13·1 answer
  • A differential backup covers what data on a system?
    13·1 answer
  • Someone who buys a song online and copies it for friends is violating
    15·2 answers
  • PLEASE help me RIGHT NOW!!!!!!!!! I will give a Brainly to anyone who helps me!
    15·1 answer
  • Secure Multipurpose Internet Mail Extensions builds on the encoding format of the MIME protocol and uses digital signatures base
    15·1 answer
  • Explain the difference between invention and innovation?
    13·1 answer
  • Check ALL of the correct answers.
    13·1 answer
  • Give two examples of html presentation
    13·1 answer
  • TRUE OR FALSE: THE BUILDER'S CLUB IS A PAID SUBSCRIPTION.
    9·2 answers
  • Is there a way for me to play a .mp3 file from my computer using Atom?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!