[ home ] [ q / soy / qa / r / nate ] [ a / health / incel / int / mtv / pol / psy / raid / sci ] [ overboard ] [ rules ] [ bans ] [ wiki ] [ booru ] [ archive ] [ merch ] [ donate ]

/tech/ - Technology

Name
Options
Comment
File
Embed
Password (For file deletion.)

File: 1690086668996.jpg (35.95 KB, 595x720, 1678976388877.jpg)ImgOps

 9359

How do I learn C?
I want to get good at fundamentals them move on to C++

 9361

>>9359
Read a book sweetie

 9367

>>9359
>move on to C++
the west has fallen or something

 9376

File: 1690105207290.pdf (2.77 MB, The C Programming Language….pdf)


 9377

>>9359
don't read this boomer dust >>9376
read C Programming: A Modern Approach by K. N. King
watch youtube videos if you don't understand something

 9378

write a videogame cheat

 9379

File: 1690113822925.png (85.34 KB, 636x559, ClipboardImage.png)ImgOps

Its one of the simplest languages around, and its the simplest to learn too, just keep in mind of some of its features its called portable assembly for a reason, theres no array bound checking when passing through a function, i think thats a feature given by the compiler on static arrays, and keep in mind to what a pointer is, which is a memory address, that means its just an unsigned 64bit integer depending on your processor, and then apply the syntax to dereference the pointer and access whats inside with the type provided, ie. *(ptr+i), be it int(32 bits) or char(8 bits)

 9382

>>9359
learn the basics (e.g., what an integer is, what stdin/stdout is, how memory allocation works, etc)
in other words, learn how computers work more or less
then read the source code of programs written in C you use, so any program that just works and actually matters, and doesnt require a ton of user interaction and user-side fixing/hacking to make it usable
for example, GNU, linux, the 200 or so command line programs you use every day that arent part of gnu, etc...
figure out (or look up) what foo does in C, and study the sauce code
then read the C bible

 9393

>>9359
I recomend CS50 by harvard (https://cs50.harvard.edu/x/2023/)
It teaches you the basics of C to then move on Python etc...
It's very good since it doesen't assume you know even basic computer ideas such as binary.

 9453

>>9377
>>9379
>>9382
>>9393
Thanks for the answers, I will read these two books



[Return][Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ home ] [ q / soy / qa / r / nate ] [ a / health / incel / int / mtv / pol / psy / raid / sci ] [ overboard ] [ rules ] [ bans ] [ wiki ] [ booru ] [ archive ] [ merch ] [ donate ]