Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
Is C a great language, or what?
Is C a great language, or what? Where else could you write something like a+++++b ?
✍: Guest
A: Well, you can't meaningfully write it in C, either. The rule for lexical analysis is that at each point during a straightforward left-to-right scan, the longest possible token is determined, without regard to whether the resulting sequence of tokens makes sense. The fragment in the question is therefore interpreted as
a ++ ++ + b
and cannot be parsed as a valid expression.
2015-01-26, 1514👍, 0💬
Popular Posts:
Can JavaScript steal text from your clipboard? It is true, text you last copied for pasting (copy &a...
What is AL.EXE and RESGEN.EXE? In the previous question you have seen how we can use resource files ...
Where Do You Download JUnit? Where do I download JUnit? I don't think anyone will ask this question ...
How To Divide Query Output into Groups? - MySQL FAQs - SQL SELECT Query Statements with GROUP BY You...
How can I show HTML examples without them being interpreted as part of my document? Within the HTML ...