How to move the value of a first variable to another (second) variable in which the first variable will become empty or 0 value. | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

How to move the value of a first variable to another (second) variable in which the first variable will become empty or 0 value.

And the other(Second)variable will contain the value of the first variable. Ex: Original Values int A=20; int B; Moved Values(Output of code) int A; or int A=0; int B=20;

2nd Jun 2018, 10:14 AM
Jobi Nedd
Jobi Nedd - avatar
2 Respostas
+ 1
int A = 20; int B = A; A=0;
2nd Jun 2018, 10:18 AM
***
*** - avatar
0
Thanks bro
13th Jul 2018, 1:27 PM
Jobi Nedd
Jobi Nedd - avatar