F
F
foonfyrick2020-11-25 17:49:59
Kotlin
foonfyrick, 2020-11-25 17:49:59

Is it possible to make a variable a so that when b=a, a=null?

You can write:
var a:Int?=1
var b:Int?=0
b=a
a=null Is
n't it that if a value is assigned to another variable, this one becomes null? That is, without explicitly assigning "a=null"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
foonfyrick, 2021-01-04
@foonfyrick

No

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question