[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: 1728353641361.png (96 KB, 1279x720)
96 KB PNG
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
>>
>>108899294
Start by deleting system32.
>>
File: Annotation 2026-04-18.png (19 KB, 514x349)
19 KB PNG
JUST READ THE (SHORT) BOOK
AND SKIP THE CLASS
>>
>>108899294
A 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.
>>
File: 1553899664309.png (1.33 MB, 1452x1518)
1.33 MB PNG
>>108899294
When 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.
>>
>>108899310
F(ourth) post best post
>>
>>108899294
++ == +=1
>>
>>108899294
assembly
>>
>>108899299
It's only considered harmful by idiots. The same idiots overflowing buffers and dangling pointers.
>>
>>108899294
food bank opens at 8AM
>>
>>108899427
Oh 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.
>>
>>108899430
It'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...
>>
>>108899430
what else is he going to do with knowing C?
>>
>>108899434
Nothing funny about it. Being in poverty is not a joke.
>>
>>108899294
addition, subtraction, english, counting, breathing, and ass wiping and the definition of "vector"
>>
>>108899415
the compiler checked how big my long longs were the other day
>>
>>108899294
you 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.
>>
>>108899415
I overflowed my dangling pointer in your mom's buffer just yesterday.
>>
>>108899450
You are allowed to learn things for the sake and joy of learning. Not everything in life is a rat race dedicated to making money.
>>
>>108899294
ask your educator if C is a subset of C++.
if they answer with yes, then assume they're completely retarded and act accordingly.
>>
>>108899450
C 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.
>>
>>108899294
Why 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
>>
>>108899294
you're better off doing >>108899309
there's a better book out there but I don't care enough to find it for your tech support thread
>>>/g/dpt
>>
File: 1768492018724752.jpg (77 KB, 1010x908)
77 KB JPG
>>108899294
If 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.
>>
File: 1779610170309068.png (1.51 MB, 1406x1757)
1.51 MB PNG
>>108899299
goto is fine
>>
>>108899634
t. webshitter baby duck
>>
File: poop.png (1.47 MB, 1000x1333)
1.47 MB PNG
>>108899294
read 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.
>>
>>108899294
C 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
>>
>>108899294
C is fun. C++ is more fun.
>>
>>108899450
C 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.
>>
>>108899958
There'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
>>108899294
Unless stated otherwise by the class description/instructions nothing, you just follow the lectures and absorb the material as it comes
In college C is mostly used as intro to imperative/procedural programming paired with Java or whatever for intro to OOP
ultimately 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 you
to 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 yourself

and goes without saying but stop shitposting on this dying dogshit website if you actually want to learn anything
>>
File: 1683808493475198.png (199 KB, 594x517)
199 KB PNG
When I took the C course, I forgot how to return a struct but I still did not fail the class
>>
>>108899294
Wathc this: https://www.youtube.com/watch?v=wzMaNVSqfYw
>>
>>108899294
Nothing, the class will teach you everything you need to know.
>>
>>108901122
not necessarily. Shortage maybe where you live
>>
>>108899294
Programs are : Input - Process - Output.
If you think about it for more then 10 seconds then you will understand everything you need.
>>
>>108899719
I'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.
>>
>>108899294
Two words - "Handmade Hero"
>>
>>108899953
do 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.
>>
>>108904954
Yes it's still fun
>>
>>108904988
ok respect
>>
>>108899294
King's A Modern Approach is pretty good.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.