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
Mnenie [13.5K]
3 years ago
6

Given the function definition void something ( int a, int& b ) { int c; c = a + 2; a = a* 3; b = c + a; } what is the output

of the following code fragment that invokes something? (All variables are of type int.) r = 1; s = 2; t = 3; something(t, s); cout << r << ' ' << s << ' ' << t << endl;
Computers and Technology
1 answer:
timurjin [86]3 years ago
8 0

Answer:

1 14 3

Explanation:

If that code fragment is put under a main() function and then it will yield the above output. According to the function something(), only changes in value second parameter will be reflected and first will be unchanged because second is passed by reference and the first one is passed as value so only address of 's' is passed, so, only its value is changed and the rest are same.

You might be interested in
To specify your preferred colors, fonts, and effects for a document, which of the following should be done?
Irina-Kira [14]

Answer: crest custom theme

Explanation:

8 0
3 years ago
Read 2 more answers
The rhythmic note that three beats is called a____half note.
aev [14]

Answer:

it is called a dotted half note

7 0
3 years ago
Read 2 more answers
A class that ______________ an interface must contain methods for all abstract methods in the interface. Otherwise, the class mu
WINSTONCH [101]

Answer:  A class that implement an interface must contain methods for all abstract methods in the interface. Otherwise, the class must be declared as abstract.

Explanation:

It is necessary to implement all the abstract method that are present in the interface. Basically, this is one of the rule of abstract method. As, abstract method is define as without any implementation.

If any class contain abstract method then, it must be declare as abstract. Therefore, if a class are not implemented an interface method then, it should be declare as abstract.    

8 0
3 years ago
Which of the following terms BEST describes the act of animating an object?
Whitepunk [10]
Bump mapping is right answer
7 0
3 years ago
Read 2 more answers
You have a large company, and it is important to your business that your employees' work is backed up regularly. Which network w
Artyom0805 [142]
It really depends on what you doing GUI is best for high graphics output
6 0
3 years ago
Read 2 more answers
Other questions:
  • How does classless inter-domain routing (cidr) help reduce waste of ip addresses?
    8·1 answer
  • How is the JOptionPaneclass used to display a dialog box that performs a yes/noconfirmation?
    10·1 answer
  • Why are specification for food processing tool,equipmentand untensils necessary?​
    8·1 answer
  • Name the contributions of Steve Jobs and Bill Gates, with respect to technology.
    5·1 answer
  • Program ____ use graphical symbols and relational operators (such as &lt; for "less than" and = for "equal to") to portray the s
    8·1 answer
  • Which domain indicates that a website is sponsored by a university or college?
    12·1 answer
  • Example of Not a computer characteristics example
    12·1 answer
  • Can someone help me answer this, I can’t fail tysm :)
    11·1 answer
  • Social media first became popular due to which development?
    8·1 answer
  • You want to add a caption to a table. which tab contains this option?.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!