- 1 Post
- 2 Comments
Joined 9 days ago
Cake day: May 10th, 2026
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
avidya@programming.devto
C Programming Language@programming.dev•THANK YOU ALL!!! - what errors should I check for and handle?
2·7 days agoDid you know that
int history[10] = {0,0,0,0,0,0,0,0,0,0};is the same thing as
int history[10] = {0};And an idom in C would be to define a constant for the size like this
enum { HISTORY_MAX = 10}; int history[HISTORY_MAX] = {0}; int history_limit = HISTORY_MAX;

If I am not mistaken, the argument made by papers like “C is not a low level language” is that C used to be a low level language, because it fit the architecture of a PDP, but a modern computer isn’t a PDP, and so C isn’t low level.