Comments (1)
@dcorderoch thanks for spotting this. It seems that your GCC is using the C89 standard to compile the code. The code should not trigger an error for C99 and above.
That said, you are still right - const size_t
does not declare a compile-time constant in C and the array declaration works in C99 and above since it's treated as a variable length array. And that wasn't the intention.
Added your fix in 3f4eb2d.
from linked-list-good-taste.
Related Issues (10)
- Will this result in memory leaks? HOT 2
- Crash HOT 1
- do you think it would be doable in other languages like python for a linked list? HOT 2
- About Linus taste HOT 1
- pointer vs value equality HOT 1
- How did you make these diagrams? HOT 1
- Value of simplicity HOT 4
- Code fails on null or item not in list. HOT 4
- Related to derivatives of data structures HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linked-list-good-taste.