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;
}