LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Programming in C Tutorial (https://www.linuxquestions.org/questions/programming-9/programming-in-c-tutorial-374099/)

pjz 10-21-2005 08:58 PM

Hi-

I learned from "A Book on C" by Pohl and Kelley. I learned C++ from "C++ Primer" by Lippmann. These are two excellent books with lots of insight.

Hope this helps. C is a great language, and everyone who programs should be able to enjoy it fully

cheers
pjz

Mercurius 10-21-2005 09:06 PM

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 :D

boxerboy 10-21-2005 09:28 PM

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

marcosdumay 10-23-2005 07:19 PM

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.

microsoft/linux 10-23-2005 09:53 PM

Practical C Programming, published by Oreilly. Very good book, I actaully own this and Practical C++ Programming, both by the same author.

geletine 10-24-2005 04:30 AM

i found this online tutorial quite good

http://www.scit.wlv.ac.uk/~jphb/cbook/html/


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.

anyhow here is the link with the answers

http://users.powernet.co.uk/eton/kandr2/

spark.ty 05-08-2006 08:31 AM

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.

exvor 05-08-2006 05:01 PM

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.


All times are GMT -5. The time now is 03:11 AM.