No coder here. I'm about to start a C class on Wednesday.What should I know beforehand?
goto considered harmful. Undefined behavior can make demons fly out of your nose
>>108899294Start by deleting system32.
JUST READ THE (SHORT) BOOKAND SKIP THE CLASS
>>108899294A bit late, ehh? Why didn't you ask sooner? You clearly don't want to learn on your own, otherwise you would have started 2 weeks ago.Just listen to C's history, when you go to sleep. Dennis Ritchie etc. And get a bit hyped, then you will be more motivated to learn about C.
>>108899294When I took a C course, it was paired with education on UNIX (but we used linux). I looked at a couple other universities, and they do the same thing. So if you want a head start, brush up on some basic linux terminal commands, especially for things like gcc to compile a hello world program and then how to run that program from the terminal. There's also a fantastic book that's considered a classic these days, and deserves a spot on any computer scientist's bookshelf. Some anon long ago drew this image for me. Anyways, to paraphrase what everyone has already said a million times, C is a very small and simple book. Simple to the point of elegance. Don't over-complicate it, just read the book and grasp the fundamentals.
>>108899294>What should I know beforehand?Make sure to brush up on Delphi before the class.
>>108899310F(ourth) post best post
>>108899294++ == +=1
>>108899294assembly
>>108899299It's only considered harmful by idiots. The same idiots overflowing buffers and dangling pointers.
>>108899294food bank opens at 8AM
>>108899427Oh wow, someone goes and educates themselves and you insult them by implying they have to go to the food bank.You should be ashamed of yourself.
>>108899430It's called humor... and I know you're just playing along, but your playing along with the joke isn't as funny as just letting the joke be. Just saying...
>>108899430what else is he going to do with knowing C?
>>108899434Nothing funny about it. Being in poverty is not a joke.
>>108899294addition, subtraction, english, counting, breathing, and ass wiping and the definition of "vector"
>>108899415the compiler checked how big my long longs were the other day
>>108899294you will become more knowledgable than 99% of the people you're soliciting advice from here come next week. And you will come to realize that real quick. hopefully, you will be able to handle that shock.
>>108899415I overflowed my dangling pointer in your mom's buffer just yesterday.
>>108899450You are allowed to learn things for the sake and joy of learning. Not everything in life is a rat race dedicated to making money.
>>108899294ask your educator if C is a subset of C++.if they answer with yes, then assume they're completely retarded and act accordingly.
>>108899450C is usually taught in CS degree programs as a foundational knowledge to build on. You should try to grasp the simple fundamentals before moving on to the more complicated domain knowledge. It's like with general programming education: Is learning to write and compile and then run a Hello World program going to get you a job? Probably not, but you need to know how to do the above in order to do the more complicated things that would get you a job.
>>108899294Why are you learning C? Learn how to use AI instead. C is over. AI won.
if your class sucks and you arent learning try looking here:https://beej.us/guide/bgc/even if the class is fine its still a great resource
>>108899294you're better off doing >>108899309there's a better book out there but I don't care enough to find it for your tech support thread>>>/g/dpt
>>108899294If something is wrong with your program it's almost always because you screwed up with a pointer.
Why not just start with Python or some other similar shit? If you're not a coder don't even bother with C. You've got it all wrong. You don't approach a computer by learning C. You learn C because you got to a point where you HAVE to learn it, not because someone told you to learn it. Why can't you imbeciles put this through you fucking thick skulls? C isn't some silver bullet that'll open the doors for you to understand computers and programming. If you weren't prepared to learn it in the first place, if you weren't seeking it you'll just waste your time and be frustrated.
>>108899299goto is fine
>>108899634t. webshitter baby duck
>>108899294read K&R C. it's a wonderful read, and will only take 2 or 3 days to work through.C is a very simple and powerful language.if you keep digging, you'll eventually find that it's as close to portable assembly as any language ever got.it has 2 or 3 warts (namely bitwise operator precedence and block comments that don't nest), but nothing that's a deal beaker.
>>108899294C is everywhere but you'll never ever ever use or see it yourself after you're done wasting your time with college
is there a cs course that starts with debugger? i feel like that should be the first thing to explain & illustrate puters, execution context, stack frames and shit
>>108899294C is fun. C++ is more fun.
>>108899450C is very important, but C++ is standard in the industry. Considering all the vibe coders and C#/ Java/ python/ web devs out there, we're about to have a short supply of C/C++ embedded devs in the next ten years.
>>108899958There's an even shorter supply of embedded jobs to hire these embedded devs
>all the basement dwelling incels that didn't write a single line of code in the past week or two seething itt and giving "advice"KEK>>108899294Unless stated otherwise by the class description/instructions nothing, you just follow the lectures and absorb the material as it comesIn college C is mostly used as intro to imperative/procedural programming paired with Java or whatever for intro to OOPultimately you won't do anything useful (for now) with C, unless you are the "cube goes into round hole" kind of retard you should be more than capable to finish whatever coursework they throw at youto be fair it will be a waste of time because you don't really need a class that drags for months to explain what is a function and how a pointer works, you can look all of that up by yourselfand goes without saying but stop shitposting on this dying dogshit website if you actually want to learn anything
When I took the C course, I forgot how to return a struct but I still did not fail the class
>>108899294Wathc this: https://www.youtube.com/watch?v=wzMaNVSqfYw
>>108899294Nothing, the class will teach you everything you need to know.
>>108901122not necessarily. Shortage maybe where you live
>>108899294Programs are : Input - Process - Output.If you think about it for more then 10 seconds then you will understand everything you need.
>>108899719I've found C useful in Ops (devops/sysadmin/etc). Being able to read C source code has helped me troubleshoot numerous production issues over the years. Also occasionally made minor tweaks to get 3rd party software and Makefiles/build scripts to compile in my environments. There's just so much C in the wild, it's worth picking up some experience.
>>108899294Two words - "Handmade Hero"
>>108899953do a correct implementation of a dynamic array in c and then in c++ (no undefined behavior, supporting all the same operations as std::vector, as efficient as the c equivalent) and tell me if you still think c++ is fun.
>>108904954Yes it's still fun
>>108904988ok respect
>>108899294King's A Modern Approach is pretty good.