+ 1

can anyone assit me with the ? operator. I am not understanding its purpose and how it works. include an example please

2nd Jul 2016, 10:53 PM
Garikayi Victor Nyakujara
Garikayi Victor Nyakujara - avatar
6 Answers
0
thank you @Andre I now have a better understanding
2nd Jul 2016, 11:00 PM
Garikayi Victor Nyakujara
Garikayi Victor Nyakujara - avatar
0
ok jus to finish on this problem, can I have an explanation of this block int x = 3; int y = 8; x = (y%x ! =0) x/y:y;
2nd Jul 2016, 11:22 PM
Garikayi Victor Nyakujara
Garikayi Victor Nyakujara - avatar
0
thank you @Andre
2nd Jul 2016, 11:36 PM
Garikayi Victor Nyakujara
Garikayi Victor Nyakujara - avatar
0
myString = myBool == true ? "true!" : "false!"; is the same as: if (myBool == true) myString = "true!"; else myString = "false!";
4th Jul 2016, 4:36 AM
Crsk