473,725 Members | 2,248 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Beginning ANSI - Standard C

Dear Everyone,

This is my first post on this newsgroup. I have extensive experience
and knowledge of other programming languages, primarily on an
Assembler level, the Z80, 6502/10, MC680x0, but also experience with
Pascal, Basic and a multiple of other languages. I used to develop
computer games for the 8-bit computers and the 16-bit computers such
as Atari and Amiga.

But "C" is "new" to me from a programming perspective. I want to learn
C - the ANSI Standard initially. From there on, when I have mastered
"that", I will move on to advanced topics, and perhaps, C++

I have got the following books:
- The C Programming Language 2. Edition (Kernighan & Ritchie)
- The "C" answer book (for the aforementioned)

as my "reference guides".

To get things started from the rock bottom, I bought the "double" pack
C for Dummies Vol. #1 and #2.

a few questions:

1) Which ANSI C compiler is GOOD, and also important FREE?

2) Moving on I want to use either Visual C or MetroWerks CodeWarrior.
Which is better, and why?

3) Good advice for the beginner? Any reference books? Websites?
Recommended compiler? I have been recommended the Bloodsheed compiler.
Is it "the" best ANSI/Free tools?

Thanks,
Mr. Olsen
Nov 14 '05 #1
5 1621


Mr. Olsen wrote:
Dear Everyone,

This is my first post on this newsgroup. I have extensive experience
and knowledge of other programming languages, primarily on an
Assembler level, the Z80, 6502/10, MC680x0, but also experience with
Pascal, Basic and a multiple of other languages. I used to develop
computer games for the 8-bit computers and the 16-bit computers such
as Atari and Amiga.

But "C" is "new" to me from a programming perspective. I want to learn
C - the ANSI Standard initially. From there on, when I have mastered
"that", I will move on to advanced topics, and perhaps, C++

I have got the following books:
- The C Programming Language 2. Edition (Kernighan & Ritchie)
- The "C" answer book (for the aforementioned)

as my "reference guides".

To get things started from the rock bottom, I bought the "double" pack
C for Dummies Vol. #1 and #2.

a few questions:

1) Which ANSI C compiler is GOOD, and also important FREE?

GCC is one compiler in common mostly and its free too !
It supporst C89 standard traditionally and C99 mostly !
If you use windows, then you can get 'cygwin' installed which
supports
GCC. I feel GCC is a safe bet for your learning and working purpose

2) Moving on I want to use either Visual C or MetroWerks CodeWarrior.
Which is better, and why?
Unsure.. !

3) Good advice for the beginner? Any reference books? Websites?
Recommended compiler? I have been recommended the Bloodsheed compiler.
Is it "the" best ANSI/Free tools?
Though people here say K&R edition2 is the best one can get for
learing C, i feel hanging here in comp.lang.c will benefit you to the
maximum.
I have learnt a lot of stuffs on C from great and experienced people
in this group.

All the best with your C experience.

- Ravi

Thanks,
Mr. Olsen


Nov 14 '05 #2

"Mr. Olsen" <ha********@sbc global.net> wrote in message
news:73******** *************** ***@posting.goo gle.com...
Dear Everyone,

This is my first post on this newsgroup. I have extensive experience
and knowledge of other programming languages, primarily on an
Assembler level, the Z80, 6502/10, MC680x0, but also experience with
Pascal, Basic and a multiple of other languages. I used to develop
computer games for the 8-bit computers and the 16-bit computers such
as Atari and Amiga.

But "C" is "new" to me from a programming perspective. I want to learn
C - the ANSI Standard initially. From there on, when I have mastered
"that", I will move on to advanced topics, and perhaps, C++

I have got the following books:
- The C Programming Language 2. Edition (Kernighan & Ritchie)
- The "C" answer book (for the aforementioned)
IMO K&R2 is still the best available book on standard C
(although it's technically 'outdated', due to the fact
that the C standard was revised in 1999, the 1989 form
(upon which K&R2 is based) is still the one in widest use).

as my "reference guides".

To get things started from the rock bottom, I bought the "double" pack
C for Dummies Vol. #1 and #2.
Ack! I hate those "dummies" books.

a few questions:

1) Which ANSI C compiler is GOOD, and also important FREE?
That depends upon which platform you're using and/or
targeting.

http://www.eskimo.com/~scs/C-faq/top.html
See section 18


2) Moving on I want to use either Visual C or MetroWerks CodeWarrior.
Which is better, and why?
They're both good imo. Which one you choose will depend upon
your preferences and what you want to do. Better yet, get
both.

3) Good advice for the beginner? Any reference books? Websites?
Recommended compiler? I have been recommended the Bloodsheed compiler.
Is it "the" best ANSI/Free tools?


"Best" is a subjective issue, but I've heard good things
about that one too.

-Mike
Nov 14 '05 #3
Mr. Olsen wrote:

To get things started from the rock bottom, I bought the "double" pack C for Dummies Vol. #1 and #2.
AKA. C by Dummies. Take anything you read in there with a grain of salt
(or even better, get a refund).
You can find a long list of C and C++ book reviews at www.accu.org .

1) Which ANSI C compiler is GOOD, and also important FREE?
GCC, Microsoft. (To name but two). I suppose by 'good' you mean
'few bugs' as opposed to 'good optimisation'; the latter won't
concern you for many months yet.
2) Moving on I want to use either Visual C or MetroWerks CodeWarrior.
Which is better, and why?
Both are non-free products (which seems to conflict with your '1').
If you want to develop for MS Windows then MS's studio is essential.
3) Good advice for the beginner? Any reference books? Websites?
Recommended compiler? I have been recommended the Bloodsheed compiler. Is it "the" best ANSI/Free tools?


Bloodshed is an IDE (ie. a program that helps you organize
your source files and invoke the compiler). It uses the GCC
compiler by default.

Nov 14 '05 #4
"Mr. Olsen" wrote:

Dear Everyone,

This is my first post on this newsgroup. I have extensive experience
and knowledge of other programming languages, primarily on an
Assembler level, the Z80, 6502/10, MC680x0, but also experience with
Pascal, Basic and a multiple of other languages. I used to develop
computer games for the 8-bit computers and the 16-bit computers such
as Atari and Amiga.
You're going to do just fine in C.

But "C" is "new" to me from a programming perspective. I want to learn
C - the ANSI Standard initially. From there on, when I have mastered
"that", I will move on to advanced topics, and perhaps, C++

I have got the following books:
- The C Programming Language 2. Edition (Kernighan & Ritchie)
An excellent choice.
- The "C" answer book (for the aforementioned)

as my "reference guides".
I wouldn't call the answer book a reference guide, but it will do you no
harm.

To get things started from the rock bottom, I bought the "double" pack
C for Dummies Vol. #1 and #2.
Burn first, read afterwards.

a few questions:

1) Which ANSI C compiler is GOOD, and also important FREE?
gcc meets both requirements. It isn't unique in this regard.

2) Moving on I want to use either Visual C or MetroWerks CodeWarrior.
Which is better, and why?
Why do you want to use either? Neither is necessary, and neither is
free.
3) Good advice for the beginner?
Read comp.lang.c every day. Learn to distinguish between your Kirbys
and Toreks on the one hand, and your Tisdales and alexes on the
other. Don't get involved in technical "discussion s". :-) And learn
how to apologise. (Yes, we've all had to learn this.)

Don't make the mistake of confusing "it compiles" with "it's correct".

Crank up your compiler's warning level as high as it will go, more or
less. If using gcc, at the very least you should specify

-W -Wall -ansi -pedantic
Any reference books?
Apart from K&R which you already have, Harbison & Steele is good.
You might want to get hold of the ISO C Standard (18 dollars,
last time I checked, from the ANSI webstore).
Websites?


The comp.lang.c FAQ is posted at
http://www.eskimo.com/~scs/C-faq/top.html

Less authoritative, but still useful: http://www.iso-9899.info/
Nov 14 '05 #5

"Mr. Olsen" <ha********@sbc global.net> wrote in message
news:73******** *************** ***@posting.goo gle.com...

3) Good advice for the beginner? Any reference books? Websites?


I recently purchased the C Primer Plus, 5th Edition, by Steven Prata, and
I'd say it is very well-suited for both the beginner who is learning C, and
the experienced programmer who needs a reference on the current state of C.
Discussion of the latest ISO and ANSI C99 standard is interwoven effectively
into the text, so that you can choose to use those features or not,
depending upon the support offered by your compiler for the C99 features.
Many source code examples, and they're available for free download from the
Web. ISBN 0672326965, 984 pages, US$34 at www.amazon.com .

Wikipedia has an excellent introductory article:
http://en.wikipedia.org/wiki/C_language

Wayne

Nov 14 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2514
by: Steven T. Hatton | last post by:
I came across this title while looking for something fairly unrelated (UML diagrams for C++ templates). The review quoted below is solidly positive. I'm not going to be able to run out an buy the book right now. I am still interested in opinions of people who have read it. Learning C++ is on a par with tensor analysis for me. It's damn hard! Anything that reduces the obstacles facing the beginner is worth promotting - IMHO. I'm still...
100
7000
by: Roose | last post by:
Just to make a tangential point here, in case anyone new to C doesn't understand what all these flame wars are about. Shorthand title: "My boss would fire me if I wrote 100% ANSI C code" We are discussing whether this newsgroup should focus on 100% ANSI C or simply topics related to the C language in the real world. There is a C standard which is defined by an international committee. People who write compilers refer to this in...
9
2761
by: Tim Rentsch | last post by:
I have a question about what ANSI C allows/requires in a particular context related to 'volatile'. Consider the following: volatile int x; int x_remainder_arg( int y ){ return x % y; }
4
3749
by: Luke Wu | last post by:
I am just wondering what the following terms usually mean: 1) "Standard C" 2) "K&R C" 3) "ANSI C" I am pretty sure "ANSI C" usually refers to the C89 standard, but what
83
11607
by: sunny | last post by:
Hi All What is C99 Standard is all about. is it portable, i mean i saw -std=C99 option in GCC but there is no such thing in VC++.? which one is better ANSI C / C99? can i know the major difference between C99 & ANSI C standards?
127
5498
by: bz800k | last post by:
Hi Does this code satisfy ANSI C syntax ? void function(void) { int a = 2; a = ({int c; c = a + 2;}); /* <<-- here !! */ printf("a=%d\n", a);
41
3150
by: jaysome | last post by:
It's been almost eight years since ISO/IEC approved ISO/IEC 9899:1999. Does anyone know if ANSI has approved it? A Google search shows arguably confusing answers as to whether ANSI has approved it. For example, on this site: http://en.wikipedia.org/wiki/C_(programming_language)#ANSI_C_and_ISO_C it says that "It was adopted as an ANSI standard in March 2000."
10
2232
by: Billy Bong | last post by:
Is the following program considered ANSI C? #include <foo/foo_bar.h/* has prototype void bar(void) */ int main(void) { bar(); return 0; } Thanks
8
2064
AmberJain
by: AmberJain | last post by:
HELLO, Is it necessary for a C programmer to have an ANSI C standard or it's sufficient to own Kernigham and Rithie's The C programming language? I know that the ritchie's book is quite brief and precise. But still, do I need a ANSI C standard? Also, Which ANSI C standard should I prefer i.e. ANSI C89 or ANSI C99 to implement in my C programs? Can you tell me pros and cons of both standards? Also, is there a newer standard in...
0
8752
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9179
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 most users, this new feature is actually very convenient. If you want to control the update process,...
1
6702
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6011
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4519
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4784
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3228
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
2
2637
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2157
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.