Really quick, can someone tell me what the ? operator is? Thanks, AnT
? isn't an operator. ?: is the ternary operator: Code: int x = 5; const char *greater = ( x > 4 ? "yes" : "no"); Code: result = ( expr ? true-result : false-result); If expr evaluates to true, then the operator resolves as true-result, otherwise false-result.
int x = 5; const char *greater = ( x > 4 ? "yes" : "no");
result = ( expr ? true-result : false-result);
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You". -- Linus Torvalds
Forum Rules