Skip to main content
gamedev.net
🔒 Locked

C syntax question

Started by Pfhorseti Jun 16, 2002 at 2:42 AM 3 replies 150+ views
Original Post
Pfhorseti
Pfhorseti
Hi, What does it mean when code says: ? 32:16 I remember learning it before but I totally forgot about it.. Thanks for the quick help.
-forseti
nicho_tedja
nicho_tedja
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-
My compiler generates one error message: "does not compile."
Null and Void
Null and Void
It''s actually closer to ''becomes the value of the expression'', which implies execution.

Pfhorseti
Pfhorseti
Thanks
-forseti
Arild Fines
Arild Fines
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".



--AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.[Project site] [IRC channel] [Blog]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.