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
zloy xaker [14]
3 years ago
10

Define a function UpdateTimeWindow() with parameters timeStart, timeEnd, and offsetAmount. Each parameter is of type int. The fu

nction adds offsetAmount to each of the first two parameters. Make the first two parameters pass by pointer. Sample output for the given program: timeStart = 3, timeEnd = 7 timeStart = 5, timeEnd = 9
Computers and Technology
1 answer:
Evgesh-ka [11]3 years ago
5 0

Answer:

C code is given below

Explanation:

// Define a function UpdateTimeWindow() with parameters timeStart, timeEnd, and offSetAmount. Each parameter is of type int. The function adds offSetAmount to each of the first two parameters. Make the first two parameters pass-by-pointer. Sample output for the given program:

#include <stdio.h>

// Define void UpdateTimeWindow(...)

void UpdateTimeWindow(int*timeStart, int* timeEnd, int offSetAmount){

*timeStart = *timeStart+ offSetAmount;

*timeEnd = *timeEnd+ offSetAmount;

}

int main(void) {

  int timeStart = 0;

  int timeEnd = 0;

  int offsetAmount = 0;

  timeStart = 3;

  timeEnd = 7;

  offsetAmount = 2;

  printf("timeStart = %d, timeEnd = %d\n", timeStart, timeEnd);

  UpdateTimeWindow(&timeStart, &timeEnd, offsetAmount);

  printf("timeStart = %d, timeEnd = %d\n", timeStart, timeEnd);

  return 0;

}

You might be interested in
PYTHON CODING QUESTION
balandron [24]

Answer:

This looks great so far!

Explanation:

Great job on the code, keep up the amazing work!

3 0
3 years ago
Where do file name extensions appear?
Zielflug [23.3K]

Answer:

At the end of the file name

Explanation:

8 0
3 years ago
Write the percentage 5 1/4 as a decimal​
Alborosie

Answer:

The answer is 5.25.

Explanation:

Out of 100% 1/4 is always 25.

7 0
4 years ago
The Florida PanHanble has almost 60 different types of habitats. Bases on this fact, which statement best describes the Florida
omeli [17]
I believe its C but im not percent sure
8 0
4 years ago
How to connect two monitors for one desktop
Tems11 [23]

Answer:

two HDMI cords, this will help you your monitors

5 0
2 years ago
Read 2 more answers
Other questions:
  • A _____ is a digital media file distributed over the Internet using syndication feeds for playback on mobile devices and persona
    6·1 answer
  • One of the earliest uses of an electronic digital computer involved ________.
    8·1 answer
  • Your colleagues are discussing the operation of a device in which packets are routed between VLANs on the device rather than hav
    7·1 answer
  • Computer-aided manufacturing (CAM) offers which possible benefits?
    15·2 answers
  • Which of the following provides services to hosts on its network?
    9·1 answer
  • The term integration refers to the ability to
    9·1 answer
  • Write a C function which takes three parameters which are the cost for an item in a grocery store, the quantity to buy, and the
    12·2 answers
  • When you navigate inside a compressed folder, you click the
    6·1 answer
  • Describe in detail what each step would look like if you ran into a software error.
    7·1 answer
  • Write a program that allows the user to input a total dollar amount for an online shopping order and computes and outputs the sh
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!