Penguin
Diff: TernaryOperator
EditPageHistoryDiffInfoLikePages

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");  
The following authors of this page have not agreed to the WlugWikiLicense. As such copyright to all content on this page is retained by the original authors. The following authors of this page have agreed to the WlugWikiLicense.

PHP Warning

lib/plugin/WlugLicense.php (In template 'html'):99: Warning: Invalid argument supplied for foreach()

lib/plugin/WlugLicense.php (In template 'html'):111: Warning: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument

lib/plugin/WlugLicense.php (In template 'html'):111: Warning: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument