2 operators that i don't understand
#4

so this:
Код:
 y = (x == 1) ? 10 : 20;
does:
Код:
if(x == 1)
{
  y = 10;
}
else
{
  y = 20;
}
right?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)