Differences between version 4 and predecessor to the previous major change of TernaryOperator.
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 4 | Last edited on Monday, May 19, 2003 2:12:00 pm | by DanielLawson | Revert |
Older page: | version 3 | Last edited on Monday, May 19, 2003 12:19:50 pm | by SamCannell | Revert |
@@ -48,4 +48,10 @@
However the following code is also valid:
($a==1) ? print "A is 1!" : print "A is not 1!";
+
+
+The above also works in C
+
+ int a = 0;
+ (a == 1) ? printf("A is 1!\n") : printf("A is not 1!\n");