0
Plz explain this line
X = (z= = - -a)? B:z
2 odpowiedzi
+ 5
i'm not sure because of the space but if its X=(z==--a)?B:z;
its same as
if(z == --a)
X=B;
else
X=z;
0
that is what is known as the teritary operator. it means "if (first term){
second term
}else{
third term
}
z== --a means "does z equal a - 1?"