Can i do this in C?
(i < 0) ? i = 1 : NULL;
This is a discussion on Mini If within the C Programming forums, part of the General Programming Boards category; Can i do this in C? (i < 0) ? i = 1 : NULL;...
Can i do this in C?
(i < 0) ? i = 1 : NULL;
Of course.
And it's called a ternary operator
Nice! Thanks!!