Suppose i decleare int a; and int b=10; | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Suppose i decleare int a; and int b=10;

and i reassign the value of a= 5; and b=7; now i use the variables in a programme. so what must be the value o a and b. i got confuse here cause b has two values

14th Dec 2016, 2:30 AM
stephen haokip
stephen haokip - avatar
1 Réponse
+ 2
Last assigned value will be value of variable. So in your case value of a is 5 and b is 7
14th Dec 2016, 3:43 AM
Muhammed Rishad