DEV Community

Discussion on: Learning C as a first language

Collapse
 
thojest profile image
thojest • Edited

Hmm instead Rust? Learn a low-level language which is very modern and also offers many abstractions you would expect from a modern language. At the same time, performant, memorysafe and a great active community.

Collapse
 
delta456 profile image
Swastik Baranwal

That is a nice idea for sure but what I have seen beginners doing while finding the length of array in Rust and C is you can just do arr.len() as it is a method but in C they will get confused on how to do it because they are used to in-built functions. You have to do sizeof(arr)/sizeof(arr[0]) in C. I think it is necessary to know how it's done in the inner workings.