[ 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: 1689176121709.png (76.31 KB, 469x629, 1688275849227.png)ImgOps

 8075

How should I learn C? Is it better to read a book or simply watch a video then start doing leetcode or something

 8076

>asking technology questions
>on zoomer reddit soyjack site
lol

 8077

>>8075
just write a program with arrays, maybe a double linked list, pointers, malloc(), free(), size(), structs, and you'll get it probably

 8078

>>8077
also don't think that you can write every project in C. some libraries are gonna have C++ interfaces. some things are better written in C++. not everything THOUGH

 8079

>>8075
If you already know programming then just learn by doing. write some programs (google is your friend, chatgpt is also your friend).
if you dont already know how to program, then start with an easier language like python/js/whatever zoomer language is trending today

 8085

if you don't already know how to program then look into CS50, it's a harvard course that's offered online for free and it teaches you basic C before moving onto Python later into the course
if you do already know how to program then i've heard good things about the book Effective C by Robert Seacord although i've not read it myself

 8086

File: 1689186332589.png (39.74 KB, 243x255, 1689165510695.png)ImgOps

>C is a proprietary programming language you should write in assembly or however the text editor is compiled

 8087

File: 1689186674811.png (32.92 KB, 600x800, ClipboardImage.png)ImgOps

>>8085
>books

 8089

C is a bad language in general and a terrible first language in particular.
If you dont know how to program at all its like learning algebra and set theory before learning regular arithmetic. Start with python, then learn C++ (the superior language) and your assembly of choice if you want, and THEN if you want you can downgrade to the much worse C.
You will never in your whole programming career run into a problem where C would be better than C++, outside of bizarre SAW-tier scenarios. Much less if you actually have to come ask the sharty if you can learn C from a video and some leetcode.

 8090

>>8089
trvthTSARBOMBA

 8097


 8098

>>8097
marge

 8099

>>8097
oh the post number ahahhahahahah thats so funny

 8101

File: 1689191658181.png (111.93 KB, 895x1217, ClipboardImage.png)ImgOps

>>8099
>ahahhahahahah thats so funny

 8102

File: 1689192715571.png (73.15 KB, 598x800, 1688276824032.png)ImgOps

>>8089
I'm familiar with programming but a little rusty. The reason why I wanted to learn C over C++ was because I heard its similar to machine code and learning that would be good for x86 which I also want to learn for an unspecified reason

 8105

>>8102
>unspecified reason
if it's hacking then Hacking: The Art of Exploitation is a good book on the subject

 8108

File: 1689194533996.png (34.52 KB, 427x400, 1681947422320.png)ImgOps

>zoomer reddit soyjack site

 8112

I personally tryed with k&r didn't like it but I agree that's the best way to learn the language

 8113

>>8087
bait or mental retardation
everyone know books are the best way to learn languages, he probably didn't mean buying the actual book rather getting the pdf

 8119

>>8102
There's no real reason to use C instead of C++ outside of ideology or very niche applications like embedded systems.
C++ is basically C but improved in every possible way. You'll never run into a problem where C would be better than C++.

 8121

>>8113
>everyone know books are the best way to learn languages
if this was 1990 maybe

 8126

>>8113
>he probably didn't mean buying the actual book rather getting the pdf
correct, these sort of books are stupidly expensive and you should pirate them

 8127

>>8113
>>8126
publishers don't want you to know this but books are free at the library.

 8138

File: 1689226737108.png (183.34 KB, 676x1021, IMG_5387.png)ImgOps

>>8105
Do you have any other good book recommendations or more specifically where I can find more like it?

 8142

>>8089
C is a great first language, because it teaches you how computers work. C comes first. i'm not advocating writing everything in C - but you should learn it first

 8154

>>8138
i'm afraid not, i was recommended that book by someone else here and i don't know where he found it
it's a really good book though

 8159

What i couldn't wrap my head around back then is to what a pointer did, and its simply just a memory address, so its value is equal to the highest your processor supports and thats it, if you want to write readable pointer code, avoid the syntatic sugar that [] provides, its much more understandable for a beginner the addition of an address then dereferencing of it ie. *(ptr+i)



[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 ]