Ĝavo (Java) bajta kodoj kaj retumilo
Pages: 1 2
entityfree (3332) 77 posts |
what is name for ‘’ <> ’’ symbol ? |
Rick Murray (539) 13851 posts |
You mean ◊? It’s a lozenge. |
Steve Pampling (1551) 8172 posts |
Could be a reference to David using the less than greater than combo in the absence of a single symbol equal crossed out. Or pling equal. |
Rick Murray (539) 13851 posts |
Oh, whoops. Took that a little too literally. ;-) Yeah, in the world of C-like languages, the characters While in the world of BASIC like languages, one may often find The proper mathematical symbol is Finally, you may recall from DavidS’ discussion about command line options where a All of these are used in software to check to ensure that this is not the same as that, and when humourously used in forum posts, it means that the two things specified are not the same. Living Frequently used in the context of |
Steve Pampling (1551) 8172 posts |
There’s always the Or |
Rick Murray (539) 13851 posts |
In C, the double equals is a comparison (is this == that) while the single equals is an assignment. So, if (myval = 3) { printf("MyVal is three!\n"); }; will print “MyVal is three!” regardless of what myval actually was, because it is now three. What is happening is that the if statement is evaluating the expression which is actually setting myval to 3. Since the value set is non-zero, the evaluation is true, which means the conditional code is executed. In the olden days, people used to use Yoda code to detect these sorts of problems, namely |
Steve Pampling (1551) 8172 posts |
The more I see of these “strangenesses” of C, the more convinced I am that Dennis Ritchie may have been a couple of sandwiches short of a picnic. |
Rick Murray (539) 13851 posts |
Pages: 1 2