Original Post
🔒 Locked
C syntax question
Advertisement
actually, your code is missing one thing. let me give you the proper syntax:
A ? B : C;
it means: if A is true, B is executed, but if A is false, C is executed.
My compiler generates one error message: "Doesn''t compile."
-Albert Tedja-
A ? B : C;
it means: if A is true, B is executed, but if A is false, C is executed.
My compiler generates one error message: "Doesn''t compile."
-Albert Tedja-
It''s actually closer to ''becomes the value of the expression'', which implies execution.


quote:
Original post by Null and Void
It''s actually closer to ''becomes the value of the expression'', which implies execution.
I think the word we are looking for is "evaluated".
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement