C Programming in easy steps, 4th edition
eBook - ePub

C Programming in easy steps, 4th edition

Updated for the GNU Compiler version 6.3.0 and Windows 10

Mike McGrath

Partager le livre
  1. English
  2. ePUB (adapté aux mobiles)
  3. Disponible sur iOS et Android
eBook - ePub

C Programming in easy steps, 4th edition

Updated for the GNU Compiler version 6.3.0 and Windows 10

Mike McGrath

DĂ©tails du livre
Aperçu du livre
Table des matiĂšres
Citations

À propos de ce livre

C Programming in easy steps, 5th edition has an easy-to-follow style that will appeal to anyone who wants to begin programming in C, from programmers moving from another programming language, to the student who is studying C programming at school or college, or to those seeking a career in computing who need a fundamental understanding of procedural programming.

C Programming in easy steps, 5th edition begins by explaining how to download and install a free C compiler so that you can quickly begin to create your own executable programs by copying the book's examples. You need have no previous knowledge of any programming language so it's ideal for the newcomer to computer programming. Each chapter builds your knowledge of C.

C Programming in easy steps, 5th edition contains separate chapters on the major features of the C language. There are complete example programs that demonstrate each aspect of C together with screenshots that illustrate the output when that program has been executed. The free, downloadable sample code provided via the In Easy Steps website all has coloured syntax-highlighting for clearer understanding.

By the end of this book you will have gained a sound understanding of the C language and be able to write your own C programs and compile them into executable files that can be run on any compatible computer.

Fully updated and revised since the fourth edition, which was published in April 2012 – now covers the GNU Compiler version 6.3.0 and Windows 10.

Foire aux questions

Comment puis-je résilier mon abonnement ?
Il vous suffit de vous rendre dans la section compte dans paramĂštres et de cliquer sur « RĂ©silier l’abonnement ». C’est aussi simple que cela ! Une fois que vous aurez rĂ©siliĂ© votre abonnement, il restera actif pour le reste de la pĂ©riode pour laquelle vous avez payĂ©. DĂ©couvrez-en plus ici.
Puis-je / comment puis-je télécharger des livres ?
Pour le moment, tous nos livres en format ePub adaptĂ©s aux mobiles peuvent ĂȘtre tĂ©lĂ©chargĂ©s via l’application. La plupart de nos PDF sont Ă©galement disponibles en tĂ©lĂ©chargement et les autres seront tĂ©lĂ©chargeables trĂšs prochainement. DĂ©couvrez-en plus ici.
Quelle est la différence entre les formules tarifaires ?
Les deux abonnements vous donnent un accĂšs complet Ă  la bibliothĂšque et Ă  toutes les fonctionnalitĂ©s de Perlego. Les seules diffĂ©rences sont les tarifs ainsi que la pĂ©riode d’abonnement : avec l’abonnement annuel, vous Ă©conomiserez environ 30 % par rapport Ă  12 mois d’abonnement mensuel.
Qu’est-ce que Perlego ?
Nous sommes un service d’abonnement Ă  des ouvrages universitaires en ligne, oĂč vous pouvez accĂ©der Ă  toute une bibliothĂšque pour un prix infĂ©rieur Ă  celui d’un seul livre par mois. Avec plus d’un million de livres sur plus de 1 000 sujets, nous avons ce qu’il vous faut ! DĂ©couvrez-en plus ici.
Prenez-vous en charge la synthÚse vocale ?
Recherchez le symbole Écouter sur votre prochain livre pour voir si vous pouvez l’écouter. L’outil Écouter lit le texte Ă  haute voix pour vous, en surlignant le passage qui est en cours de lecture. Vous pouvez le mettre sur pause, l’accĂ©lĂ©rer ou le ralentir. DĂ©couvrez-en plus ici.
Est-ce que C Programming in easy steps, 4th edition est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă  C Programming in easy steps, 4th edition par Mike McGrath en format PDF et/ou ePUB ainsi qu’à d’autres livres populaires dans Informatica et Programmazione in C. Nous disposons de plus d’un million d’ouvrages Ă  dĂ©couvrir dans notre catalogue.

Informations

Année
2018
ISBN
9781840788457
1
Getting Started
Welcome to the world of C. This chapter demonstrates how to create a C program in text, then how to compile it into executable byte form.
Introducing the C language
Installing a C compiler
Writing a C program
Compiling a C program
Understanding compilation
Summary
Introducing the C language
C is a compact, general-purpose computer programming language that was originally developed by Dennis MacAlistair Ritchie for the Unix operating system. It was first implemented on the Digital Equipment Corporation PDP-11 computer in 1972.
image
Dennis M Ritchie, creator of the C programming language.
This new programming language was named “C” as it succeeded an earlier programming language named “B” that had been introduced around 1970.
The Unix operating system and virtually all Unix applications are written in the C language. However, C is not limited to a particular platform and programs can be created on any machine that supports C, including those running the Windows platform.
The flexibility and portability of C made it very popular and the language was formalized in 1989 by the American National Standards Institute (ANSI). The ANSI standard unambiguously defined each aspect of C, thereby eliminating previous uncertainty about the precise syntax of the language.
ANSI C has become the recognized standard for the C language and is described, and demonstrated by examples, in this book.
Why learn C programming?
The C language has been around for quite some time and has seen the introduction of newer programming languages like Java, C++, and C#. Many of these new languages are derived, at least in part, from C – but are much larger in size. The more compact C is better to start out in programming because it’s simpler to learn.
It is easier to move on to learn the newer languages once the principles of C programming have been grasped. For instance, C++ is an extension of C and can be difficult to learn unless you have mastered C programming first.
Despite the extra features available in newer languages, C remains popular because it is versatile and efficient. It is used today on a large number of platforms, for everything from micro-controllers to the most advanced scientific systems. Programmers around the world embrace C because it allows them maximum control and efficiency in their programs.
image
Programs written 20 years ago in C are still just as valid today as they were back then.
Standard C libraries
ANSI C defines a number of standard libraries that contain tried-and-tested functions, which can be used in your own C programs.
The libraries are contained in “header files” that each has a file extension of “.h”. The names of the standard C library header files are listed in the table below with a description of their purpose:
Library:
Description:
stdio.h
Contains input and output functions, types, and macro definitions. This library is used by most C programs and represents almost one third of the entire C libraries
ctype.h
Contains functions for testing characters
string.h
Contains functions for manipulating strings
math.h
Contains mathematical functions
stdlib.h
Contains utility functions for number conversion, storage allocation, etc.
assert.h
Contains a function that can be used to add diagnostics to a program
stdarg.h
Contains a function that can be used to step through a list of function arguments
setjmp.h
Contains a function that can be used to avoid the normal call and return sequence
signal.h
Contains functi...

Table des matiĂšres