Answer:
Following are the program in the C++ Programming Language.
#include <iostream>
using namespace std;
//define function for swapping
void SwapValues(int* userVal1,int* userVal2){
//set integer variable to store the value
int z = *userVal1;
//interchange their value
*userVal1 = *userVal2;
//interchange their value
*userVal2 = z;
}
//define main method
int main()
{
//declare variables
int x,y;
//get input from the user
cin>>x>>y;
//Call the method to swap the values
SwapValues(&x,&y);
//print their values
cout<<x<<" "<<y;
return 0;
}
<u>Output</u>:
3 8
8 3
Explanation:
<u>Following are the description of the program</u>.
- Firstly, we define required header file and function 'SwapValues()', pass two pointer type integer variables in argument that is 'userVal1' and 'userVal2'.
- Set integer data type variable 'z' and initialize the value of 'userVal1' in it, then initialize the value of 'userVal2' in 'userVal1' and then initialize the value of 'z' in 'userVal2'.
- Finally, define the main method in which we set two integer type variables and get input from the user in it then, call and pass those variables and print it.
Answer:
The TODAY Function will return the current date, while the NOW Function will return the current date and time. These can be very useful for a spreadsheet that requires having the current date and/or time. These functions are a bit different than most other Excel Functions in two ways. They are what's known as volatile.
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;
}
Answer: use this link :- https://www.file-extension.info/conversion/enw-to-pdf
Explanation: