473,545 Members | 2,081 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Looking for books and tutorials to learn pure C

Nepomuk
3,112 Recognized Expert Specialist
Hi everybody!
For a private project I'm doing at the moment, I need to learn pure C. I've been learning C++ for a while, but just leaving away the parts of the language, that I know belong to C++ just doesn't do the job all of the time. So, I'd like to know some good sources. I know, that searching for C tutorial on Google will give me lot's of results, but I have no idea, which of them are good and which aren't.

Also, I would like some reference on what is actually part of the language and what is part of the standard libraries.

Oh, I should mention that I have a reasonable amount of experience in Java. I know, C isn't OOP, but in many parts the syntax is very similar.

Greetings,
Nepomuk
Jul 16 '08 #1
9 2002
JosAH
11,448 Recognized Expert MVP
Study K&R2, it's the bible w.r.t. C.

kind regards,

Jos
Jul 16 '08 #2
Nepomuk
3,112 Recognized Expert Specialist
Study K&R2, it's the bible w.r.t. C.

kind regards,

Jos
Thank you. That would be this one, right? (Or for those, who can read german: this one.)

Greetings,
Nepomuk
Jul 16 '08 #3
JosAH
11,448 Recognized Expert MVP
Thank you. That would be this one, right? (Or for those, who can read german: this one.)
Yup, the English version is the one I was targeting; I don't know about the German
version but that could be the translation of the English version. K&R didn't write
many different books on C, so despite those dwarfs on the cover ... ;-)

kind regards,

Jos
Jul 16 '08 #4
weaknessforcats
9,208 Recognized Expert Moderator Expert
I would like to know where you can't use C++.

The only place I have ever heard there is an issue is in the Windows drivers environment where you are dealing with paged code - and even there C++ has crept in.

C++ is designed to replace C.
Jul 17 '08 #5
Nepomuk
3,112 Recognized Expert Specialist
I would like to know where you can't use C++.

The only place I have ever heard there is an issue is in the Windows drivers environment where you are dealing with paged code - and even there C++ has crept in.

C++ is designed to replace C.
At the moment, I'm writing a sort of kernel and, as you can see with the Linux kernel, many people prefer C over C++ for this sort of task. Now, I don't know either language well, but I'd like to be able to compare myself. So far, I haven't needed any objects and I can't use the standard libraries (including things like printf/cout and, annoyingly, malloc) anyway.

I might well use C++ in the end, but I'd like to learn C in any case. The minimum will be, that I get a better understanding of C++. Oh, and I might have to write a sort of Windows driver at some point (that has to do with a far away goal of the project).

Greetings,
Nepomuk
Jul 19 '08 #6
JosAH
11,448 Recognized Expert MVP
I can't use the standard libraries (including things like printf/cout and, annoyingly, malloc) anyway.
If you can use the system calls sbrk() or brk() that manipulate the
size of your process' memory you can build your own malloc; K&R2 contains
a simple implementation of that function (and the free() function as well).

kind regards,

Jos
Jul 19 '08 #7
AmberJain
884 Recognized Expert Contributor
Study K&R2, it's the bible w.r.t. C.

kind regards,

Jos
HELLO,
JosAH previously had advised me to read this book and now I own that one.

And yes, as JosAH said, K&R2 is certainly the bible of C. It is really a good (I'd better say "best" here) book for C. I'm presently reading to it.

THANKS......... ....
Jul 20 '08 #8
JosAH
11,448 Recognized Expert MVP
I would like to know where you can't use C++.
Everywhere where C++ is not available. We (my friends and I) developed a piece
of dedicated hardware, based on a small Atmel processor. There is no C++ compiler
available for that thingie; there is a fine C compiler available though. That's why.

kind regards,

Jos
Jul 20 '08 #9
Banfa
9,065 Recognized Expert Moderator Expert
Everywhere where C++ is not available.
I would echo this reply and add that there are many 100s of platforms for which there is a C compiler and no C++ compiler and that there are a far number of platforms that although they have a C++ compiler the implementation is so buggy that you wouldn't want to use it.
Jul 20 '08 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

14
2558
by: Jason Daly | last post by:
I'm a freshman at college as a computer science major. I'm not sure it has what I want. Does anyone know if a major commonly exists in web design (focusing in server side languages)? I want to program for the internet, but don't know where to get all of my information from to be the most knowledgeable I can be. Do i find what i'm looking...
1
1328
by: Eric | last post by:
Hi, What is the best Javascript book available? Not in terms of syntax (you can look that up easily), but in terms of project development, to accomplish a particular task, maybe like a cookbook? And what is the best available javascript web resource for the above things? Thanks, Eric
4
1825
by: Wayne Wengert | last post by:
I am looking for pointers to good beginner books, tutorials or other resources to help me understand how to really use XML data. I program mostly in VB (I have several applications in VB6 but am just starting to convert to VB.NET). Most of my database backends are SQL Server 2000 with a few still Access. I want to educate myself so that I can...
29
3462
by: Jhon smith | last post by:
Hi,all,I was just wondering if I am likly to have any problems trying to learn C from older books,I have some from the late 80`s,mid/late 90`s. I am using Dev-C++ on the pc windows platform,But I have noticed small differnces in the books such as,int main(),main(void),fprintf,and others,just wondering if these older books are still worth...
90
3767
by: Jhon smith | last post by:
Hi all,Just wondering are there any problems with learning c from older books,as I have picked up some from 1988,1994,1997,1998. By using books of this age(Im on a tight budget)am I going to missout on anything in the langauge or has C remaind similar. I intend to use Dev-C++ on the windows platform. If any one feels theres anything I should...
6
1549
by: Shawn | last post by:
I have been fooling around with C# for about a half year doing simple little programs. i would like to delve into more complex UI designs such as docking windows, the outlook task bar. Does anyone know any good books or tutorials that would go over that? or where i can get information? i'm trying to break into the C# field.
10
2151
by: Harley | last post by:
Hello, I was VERY blessed with a Christmas gift of visual studio .net from a man I hardly know who had heard of my plans of software developement. So I am probably the only person in the world who actualy has this great IDE and don't even know vb.net (or c sharp etc.). I have some prior exposure to simple scripting language such as...
6
2237
by: WJRutledge | last post by:
Just like the subject says, I'm interested in taking up PHP and would like to know if anyone knows of any books that are a must have. I know there are tons of books out there on every language, but I'm sure some are much better than others. I'm mainly looking for a beginners book that also had advanced content too, but if that doesn't exist,...
12
1582
by: alexander | last post by:
hi, can someone point me to a good JS tutorial? (it may be in German or English) regards alex
0
7406
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7660
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7813
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7431
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7761
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
4949
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3444
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1888
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1020
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.