Answer:
The program to this question can be given as:
Program:
#include <iostream> //header file
using namespace std; //using namespace.
void SwapValues(int* userVal1, int* userVal2); //function declaration.
void SwapValues(int* userVal1, int* userVal2) //function definition.
{ //function body.
//perform swapping
int t = *userVal1;
*userVal1 = *userVal2;
*userVal2 = t;
}
int main() //main method
{
int n1, n2; //define variable
cout<<"Enter first number :"; //message
cin>>n1; //input by user.
cout<<"Enter second number :"; //message
cin>>n2; //input by user.
SwapValues(&n1,&n2); //calling function.
cout<<"Swapped values"<<endl;
cout<<"first number is :"<<n1<<endl; //print value
cout<<"second number is:"<<n2<<endl; //print value
return 0;
}
Output:
Enter first number :3
Enter second number :8
Swapped values
first number is :8
second number is :3
Explanation:
The description of the above C++ language program can be given as:
- In the program, firstly we include the header file. Then we declare and define a function that is "SwapValues()" function in the function we pass two integer variable that is "userVal1 and userVal2" inside a function, we define an integer variable that is "t" and perform swapping.
- Then we define the main function in the main function we define two variables that is "n1 and n2" this variable is used to take value-form user. then we pass this value to function and print the function values.
Access: full electronic participation in society.
Commerce: electronic buying and selling of goods.
Communication: electronic exchange of information.
Literacy: process of teaching and learning about technology and the use of technology.
Etiquette: electronic standards of conduct or procedure.
Law: electronic responsibility for actions and deeds.
Rights & Responsibilities: those freedoms extended to everyone in a digital world.
Health & Wellness: physical and psychological well-being in a digital technology world.
Security (self-protection): electronic precautions to guarantee safety.
IMPORTANT
Etiquette. Students need to understand how their technology use affects others. ...
Literacy. Learning happens everywhere. ...
Rights and responsibilities. Build trust so that if something happens online, students are willing to share their problems or concerns about what has happened.
Answer:
Control H is the command to Find and Replace. It is used to find a word and replace the word with something else.
Explanation:
Answer:
B) To package a repeated task as a function even though the task does not yield a value
Explanation:
The purpose of a function that returns "void" is to package a repeated task as a function even though the task does not yield a value. Since the function does not return any value, it control returns to the caller.
Answer:
Touch and hold a clip to pin it. Unpinned clips will be deleted after 1 hour.