Free C language tutorial


Free C language tutorial




Table of Contents:



Introduction - What is C and why study it?
Chapter 1 - Getting Started
Chapter 2 - Program Structure
Chapter 3 - Program Control
Chapter 4 - Assignment & Logical Compare
Chapter 5 - Functions, Variables, & Prototyping
Chapter 6 - The C Preprocessor
Chapter 7 - Strings and Arrays
Chapter 8 - Pointers
Chapter 9 - Standard Input/Output
Chapter 10 - File Input/Output


---------------------------




Sample of the pdf document :





Introduction to the C Tutorial

C IS USUALLY FIRST:

The programming language C was originally developed by Dennis Ritchie of Bell Laboratories and was designed to run on a PDP-11 with a UNIX operating system. Although it was originally intended to run under UNIX, there has been a great interest in running it under the MS-DOS operating system on the IBM PC and compatibles. It is an excellent language for this environment because of the
simplicity of expression, the compactness of the code, and the wide range of applicability. Also, due to the simplicity and ease of writing a C compiler, it is usually the first high level language available on any new computer, including microcomputers, minicomputers, and mainframes.

C is not the best beginning language because it is somewhat cryptic in nature. It allows the programmer a wide range of operations from high level down to a very low level, approaching the level of assembly language. There seems to be no limit to the flexibility available. One experienced C programmer made the statement, "You can program anything in C", and the statement is well supported by my own
experience with the language. Along with the resulting freedom however, you take on a great deal of responsibility because it is very easy to write a program that destroys itself due to the silly little errors that a good Pascal compiler will flag and call a fatal error. In C, you are very much on your own as you will soon find.

I ASSUME YOU KNOW NOTHING ABOUT C

In order to successfully complete this tutorial, you will not need any prior knowlede of the C programming language. I will begin with the most basic concepts of C and take you up to the highest level of C programming including the usually intimidating concepts of pointers, structures, and dynamic allocation. To fully understand these concepts, it will take a good bit of time and work on your part because they are not particularly easy to grasp, but they are very powerful tools.

Enough said about that, you will see their power when we get there, just don't allow yourself to worry about them yet.

Programming in C is a tremendous asset in those areas where you may want to use Assembly Language but would rather keep it a "simple to write" and "easy to maintain" program. It has been said that a program written in C will pay a premium of a 20 to 50% increase in runtime because no high level language is as compact or as fast as Assembly Language. However, the time saved in coding can be tremendous, making it the most desirable language for many programming chores.

In addition, since most programs spend 90 percent of their operating time in only 10 percent or less of the code, it is possible to write a program in C, then rewrite a small portion of the code in Assembly Language and approach the execution speed..........





 Click here for  Download PDF / FREE
Free C language tutorial






0 commentaires: