ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I know, it gives you a great amount of freedom. Only problem I have is that although I know basic sintax it is usually difficult to "think" in C rather then human logic. I forget that computers are dead stupid sometimes
i have tried alot of books the most detailed ive found and easiest to learn from is c programming for dummies yeah yeah yeah i know its a dummy book but i have come a long way in just 3/4ths of the first book. i cant make up programs yet but i know what each part does and what to look for in way of "bugs" and how to tell where the "bug" is i would sugest if you use c code for a beginner i recommend either anjuta ide or kdevelop. i learned on kdevelop and its pretty simple. i have to say i like the idea of the bittorent ebooks i have to look into that
My experience is that C is a very hard language to learn. Every attempt I made to teach people how to program had better outcomes on other languages but C.
That said, I recommend that you learn another language if youdon't know how to program (I recommend pascal for that). As soon as you know how to program (recursive functions and pointers included), you're ready to start learnning C. And don't worry, you can start learnning C before you program WELL.
Ok, I don't know a nice book of C to recommend, but this is because I don't use books to teach it. My oppinion is that the best way to learn a language is programming, with a written reference (that desn't need to be a book) with you. As soon as you feel a bit confident, take a look at other people code and try to find someone to evaluate your programs. That is more important than a good book.
as i have been looking further through the c bible, there explain early concepts sligtly clearer
Ive found most of the answers to the questions from the link below, of course in c there are many ways to code even "hello word" can be written dozens of ways..
hopefully you are getting along nicely, besides c , i am learning java as thats the language there teach at school, which is considered a easier language, and good for bigginers like myself, garbage management is one of things that you don't have in c, thats definately one of the reasons i want to learn c, how to manage memory.
C Primer plus is one of the best. It explains all concepts of programming and covers all the things except all functions and it has a large collection of information which helps you on a path to mastering C.
There is also the gnu c programming tutorial. Altho there are some things i dont agree with in there it was helpfull.
Im learning C as well and have learned the syntax. The syntax is pretty eazy to learn whats hard about C is the concept into code stuff and memory management. Im also using a very old text book to learn some of the harder things like linked lists ques stacks and binary trees. If your looking to make a program that has a pretty little interface with a small amount of code C is not the thing to go with. As most tutorials will say C gives you alot of freedom and alot of control but also assums you know what your doing and allows you to make mistakes.
Some of the things I dont agree with GNU C programming tutorial.
using getline instead of scanf.
pointer descriptions are not very clear and not extensive.
leaving out some of the more intresting stuff like linked lists and such.
there are some others but more recently i havent had the need to go back and refrence it.
ohh to find it google works with keyword GNU C programming.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.