Answer:
Following is the algorithm to interchange the value of two variable x and y.
step 1:Read the two integer x and y.
step 2 :t=x
Step 3: x=y
step 4: y=t
The minimum number of assignment to do this is 3
Explanation:
After reading two integer x & y, create a variable "t" of integer type.
with the help of variable "t", we can swap the value of variable x and y.
It requires 3 assignment to interchange the value.
- Sandbox. ...
- Real-time strategy (RTS) ...
- Shooter (FPS and TPS) ...
- Multiplayer online battle arena (MOBA) ...
- Role-playing games (RPG, ARPG, and more) ...
- Simulation and sports.
<em>-</em><em> </em><em>BRAINLIEST</em><em> answerer</em>
With the aid of pointer-based arithmetic operations and the usage of pointers in comparison operations, address arithmetic is a technique for determining the address of an object. Pointer arithmetic is another name for address arithmetic.
The pointers can be used for mathematical operations like addition, subtraction, etc. The outcome of an arithmetic operation on the pointer, however, will likewise be a pointer if the other operand is of type integer because we know that the pointer includes the address. These operations are addition and subtraction. In C++, a pointer's value can be increased or decreased. It signifies that we can change the pointer's value by adding or removing integer values. A pointer arithmetic can be subtracted (or added) from another in a manner similar to this.
Learn more about arithmetic here-
brainly.com/question/11424589
#SPJ4
That if something happens such as some one gets cancer you can pay for it or if you lose your job you can still have time to react and get a new job