Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tome
on Aug 13, 2010
|
parent
|
context
|
favorite
| on:
Strangest language feature
[Language pedant: although it's legal C, the use of cerr and endl and << is more likely to occur in C++!]
senki
on Aug 13, 2010
[–]
<< is C++ only.
tome
on Aug 13, 2010
|
parent
|
next
[–]
<< is the left-shift operator in C, so the OP's code
is
syntactically valid C.
It ought not to compile though, since it's trying to shift cerr by a string!
senki
on Aug 13, 2010
|
root
|
parent
|
next
[–]
Thanks. Sorry. I'm stupid...
mahmud
on Aug 13, 2010
|
parent
|
prev
[–]
"Goddamn operator overloading" -- Rev Wright
senki
on Aug 13, 2010
|
root
|
parent
[–]
Strangest language feature...
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: