Answer:
C code for half()
#include<stdio.h>
void half(float *pv);
int main()
{
float value=5.0; //value is initialized
printf ("Value before half: %4.1f\n", value); // Prints 5.0
half(&value); // the function call takes the address of the variable.
printf("Value after half: %4.1f\n", value); // Prints 2.5
}
void half(float *pv) //In function definition pointer pv will hold the address of variable passed.
{
*pv=*pv/2; //pointer value is accessed through * operator.
}
- This method is called call-by-reference method.
- Here when we call a function, we pass the address of the variable instead of passing the value of the variable.
- The address of “value” is passed from the “half” function within main(), then in called “half” function we store the address in float pointer ‘pv.’ Now inside the half(), we can manipulate the value pointed by pointer ‘pv’. That will reflect in the main().
- Inside half() we write *pv=*pv/2, which means the value of variable pointed by ‘pv’ will be the half of its value, so after returning from half function value of variable “value” inside main will be 2.5.
Output:
Output is given as image.
read that hope this helped
Decrease. Think like this, if you were standing in the ocean getting hit by waves, frequency would be how many waves hit you in a certain amount of time. If there were lots of little waves hitting you the number of waves (the frequency) would be high, whereas big waves are slower and take more time to reach you so you would get hit by less of them in the same time frame. The less frequent, the longer the wave.
Answer:
The answer to this question is given below in the explanation section
Explanation:
To save a file in word, you can select File, Save (save as), select the location, type the file name, and select save.
If you want to save the file in word using shortcut. Then, for saving the file, you need to press Ctrl+S. If you want to save the file as (Save as), then you need to press F12.
Clients that run numerous virtual machines.
<h3>What is a virtual machine?</h3>
- A virtual machine is the virtualization or emulation of a computer system in computing.
- The functionality of a physical computer is provided by virtual machines, which are built on computer architectures.
- Their use may necessitate specialized hardware, software, or a combination of both.
- Virtual machines' primary function is the simultaneous operation of several operating systems on a single piece of hardware.
- Without virtualization, running two different physical units would be necessary to run different operating systems, such as Windows and Linux.
- Through the use of virtualization technologies, virtual machines are made possible.
- Multiple virtual machines (VMs) can run on a single machine thanks to virtualization, which simulates virtual hardware using software.
- The real machine is referred to as the host, and any virtual machines running on it as the guests.
To learn more about virtual machines, refer to:
brainly.com/question/27961159
#SPJ4