News for hackers. Stuff that matters.
Re:Ask HN: How do I learn C properly? by jki275 on Sunday March 08, 2020 @07:40PM (#22521509)
C++ is not a strict superset of C anymore. You can't compile all C in a C++ compiler.
Re:Ask HN: How do I learn C properly? by leetcrew on Tuesday March 10, 2020 @05:04PM (#22539662)
has c++ ever been a strict superset of c?

afaik,

  int* arr = malloc(sizeof(int));
has never worked in c++.
Re:Ask HN: How do I learn C properly? by jki275 on Tuesday March 10, 2020 @08:36PM (#22541684)
It's probably never been a strict superset really.
Re:Ask HN: How do I learn C properly? by mrr54 on Monday March 09, 2020 @10:02PM (#22532077)
To use a trivial example:

    int free;
Re:Ask HN: How do I learn C properly? by leetcrew on Wednesday March 11, 2020 @09:20PM (#22552532)
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).