Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jki275
on March 8, 2020
|
parent
|
context
|
favorite
| on:
Ask HN: How do I learn C properly?
C++ is not a strict superset of C anymore. You can't compile all C in a C++ compiler.
leetcrew
on March 10, 2020
|
next
[–]
has c++ ever been a strict superset of c?
afaik,
int* arr = malloc(sizeof(int));
has never worked in c++.
jki275
on March 11, 2020
|
parent
|
next
[–]
It's probably never been a strict superset really.
mrr54
on March 10, 2020
|
prev
[–]
To use a trivial example:
int free;
leetcrew
on March 12, 2020
|
parent
[–]
care to explain which language this doesn't work in (and why)? I'm curious. AFAIK, `free` isn't a keyword in either language and this is just declaring an int variable with a legal identifier (but not initializing it).
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: