Recommended this book to start learning C

>recommended this book to start learning C
>confused when i'm given warnings on compile
>learn it uses a different syntax than what's accepted now

how am i supposed to use this fucking book if the syntax is all wrong?

Other urls found in this thread:

redox-os.org/news/rust-is-softwares-salvation-17/
twitter.com/NSFWRedditGif

Dude I'm falling for the bait .... It's just a meme try some deitel

>how am i supposed to use this fucking book if the syntax is all wrong?

gcc -ansi

Buy C Programming: A Modern Approach instead.

Easy bro just throw it in the garbage and use Python, just werks.

Which examples are give you warnings? Are you sure you have the second edition and not the first?

Just use JS and some hipster new framework that bloats the entire website so you need an i7 to display it in less than an hour.

it's not an absolute beginner's book
people fail to mention that often

Terry told me to just learn C

When i was learning java,i was impressed by easy to use.I'm so stupid that i engaged in learning C language seriously.

>Python

K&R is an intermediate programming book

I also recommend this book!

the 2nd edition actually tells you to open your main function with just "main()"

it's not THAT hard to adapt yourself though, don't know why OP is bitching

Try HolyC instead.

How about you stop trying to learn useless deprecated legacy crap and start learning a fast, modern, feature-complete programming language like Nim or Scala?

Don't learn C. C is the source of all our problems. Learn Rust instead.
redox-os.org/news/rust-is-softwares-salvation-17/

But you can do that and it gives no compilation errors.

nigger i fucking told you this books is a meme.

read C Primer Plus. Very detailed, easy to follow, and the code will actually compile.

>no support for object-orientation
Nice meme.

If by "object-orientation" you mean Java's shitty way of doing things, which is no first-class functions and literally everything is an object, then you're right, and that's a good thing.
Rust has the OOP capability of C++ without the garbage that comes along with it.

Objective C :^)

>Rust has the OOP capability of C++

Assembly is up, C is down
it really makes you think

it is funny how there are hardly any meme languages on that list

It's not an up to date book on C
people "fail" to mention that often

I wouldn't mind if Kernighan made a C11 version of the book

but he is like 74 and his buddy is dead

Hell no, let for once competent people do that. Just like a committee had to fix their buggy language.

That list is based almost entirely on Google and youtube search results

>java's way of doing things is shitty, despite being de facto industry standard and the reference for every object orientation implementation
>literally everything in java is an object, I have never heard of primitive data types
>first-class functions are a good thing, not a useless abstraction pushed by academia that utterly fails at representing business logic unlike classes
>Rust can do everything C++ does, except it doesn't because it doesn't support inheritance or polymorphism, also ignore the fact that Java can do everything the functional-programming meme can do through interfaces and anonymous functions
Hope you enjoyed having your ass handed to you.

> Nim
No this is some rare meme.

You can't fix what's initially broken.
Either C dies, or C stays.

>SJWzilla shit

The syntax isn't "all wrong", that's why your compiler may produce a WARNING but not an ERROR.