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
AfilCa [17]
3 years ago
7

Consider the function definition void Demo( int& intVal, float floatVal ) { intVal = intVal * 2; floatVal = float(intVal) +

3.5; } Suppose that the caller has variables myInt and myFloat whose values are 20 and 4.8, respectively. What are the values of myInt and myFloat after return from the following function call? Demo(myInt, myFloat);
Computers and Technology
1 answer:
Fynjy0 [20]3 years ago
5 0

Answer:

myInt=40

myFloat=4.8

Explanation:

First look at the function definition .It has two arguments intVal is passed by reference while floatVal is passed by value.So the changes done on the myInt variable will be reflected on the original argument because when a variable is passed by reference the the changes are reflected on the original argument but when a variable is passed by value the function created a duplicate copy of it and work on them so changes are not reflected on the original argument.So myInt will get doubled while myFloat will remain the same.

You might be interested in
If userNum1 is less than 0, put "userNum1 is negative.\n" to output. If userNum2 is greater than 10, assign userNum2 with 0. Els
Over [174]

Answer:

I don't know what language you want this in, but I will do it in c++. Let me know if you want it in another language.

if (userNum1 < 0) {

 cout << "userNum1 is negative" << endl;

}

else if (userNum2 > 10 {

 userNum2 = 0;

} else {

 cout << "userNum2 is less than or equal to 10";

}

7 0
2 years ago
What can your employer do to protect you from overhead power lines?
bazaltina [42]
Both 2 and 3

Your employer is able to contact the power companies for further protection.
6 0
3 years ago
From the following list choose all the tasks an operating system performs.
zhenek [66]
  • <em>Manage memories - Operating system has utilities that could help users to manage their memories. Such utilities include Disk Maintenance and Disk Degfragmentation which are helpful to detect problems within your disk storage. </em>
  • <em>Works as an intermediary between the hardware and the software - OS has a special program called kernel. Basically, a kernel can recognize a command in relation to hardware. For example, when the user click on Ctrl and P keys on the keyboard, the kernel would send alert to the corresponding hardware which is the printer then do the task. </em>
  • <em>Manages which program gets access to memory and for how long - OS manages tasks. It supports multi tasking which means several processes can happen at a time. In order to do that, OS manage the computation and priorities of tasks to ensure that the user can have a good experience.</em>
4 0
3 years ago
Read 2 more answers
Aspiring graphic designers can earn a(n) certification for graphic design software, such as Photoshop and Acrobat.
kobusy [5.1K]

<u>Answer is:</u>

Yes, they earn a certification as a graphic designer


<u>Explanation:</u>

And they can do everything that graphic designer do, so that is why they earn a certification of a graphic designer such as Photoshop and adobe illustrator.

I hope you got the answer well. Thanks

5 0
3 years ago
Read 2 more answers
What’s good and bad about having social media?
Leona [35]
Something good about it is that you can express yourself and make friends or goals for yourself. Bad because you can get hated on, friends can leave you, you can get exposed, or you can get hacked or scammed
6 0
3 years ago
Read 2 more answers
Other questions:
  • Which of the following jobs are most likely to be in greater demand due to the increasing prevalence of mobile computing? deskto
    13·1 answer
  • The final element of an e-mail message should be
    15·1 answer
  • Okay so remember that page I was advertising? At: fol ? Now it's deleted. And idk why because I was doing everything the right w
    7·1 answer
  • How many electrons are there in an atom of carbon? A. Four B. Eight C. Six D. One
    15·2 answers
  • Diagnosing is solving the problem, and trouble shooting is figuring out what the problem is.
    15·1 answer
  • You are working in the media industry, and you have created a web application where users will be able to upload photos they cre
    5·2 answers
  • A cybersecurity analyst is currently investigating a server outage. The analyst has discovered the following value was entered f
    9·1 answer
  • Which camera mode gives the photographer the greatest amount of control?
    7·2 answers
  • Drag each label to the correct location on the image. Match the movie qualities with the right period of movies.
    8·1 answer
  • Write a one page report describing the computer the client used, who else had access to it and other relevant findings. Referenc
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!