r/cprogramming • u/TurtleSlowRabbitFast • 21d ago
Would learning C as my first programming language also be useful for picking up other languages later on? What are your thoughts on this course?
Wanting to learn C as an intro into software engineering. I know it’s low level and I’d like to eventually switch over to high level languages such as JS/TS, Java, and GO.
Does the “The Complete C Programming Bootcamp” course by Byte Garage be a good choice to learn from?
35
Upvotes
View all comments
Show parent comment
2
u/70Shadow07 20d ago
int* ptris valid but it is a wrong mental model and will nuke your understanding by the time you get to multiple declarations in one line (not necessary but some ppl do use them) and function pointers.It's like writing
j =++ iIf you didn't know better, you might get an impression that ++ is a part of = operator, but instead it binds to i variable. Inint * ptrdeclaration asterisk binds with ptr on right hand side not withintwhich is nothing else but resultant type of the expression described on the right hand side.There is no inherent problem in using star on the left side, everyone can parse it properly in their minds, but suggesting it's a "proper" way to write declaration is madness. It just reminds other readers that the person speaking doesnt understand how C declarations work.