Programming In C | Learn Programming

THE C PROGRAMMING LANGUAGE WAS pioneered by Dennis Ritchie at AT&T Bell Laboratories in the early 1970s. It was not until the late 1970s, however, that this programming language began to gain widespread popularity and support. This was because until that time C compilers were not readily available for commercial use outside of Bell Laboratories. Initially, C’s growth in popularity was also spurred on in part by the equal, if not faster, growth in popularity of the Unix operating system.This operating system, which was also developed at Bell Laboratories, had C as its “standard” programming language. In fact, well over 90% of the operating system itself was written in the C language!

The enormous success of the IBM PC and its look-alikes soon made MS-DOS the most popular environment for the C language.As C grew in popularity across different operating systems, more and more vendors hopped on the bandwagon and started marketing their own C compilers. For the most part, their version of the C language was based on an appendix found in the first C programming text—The C Programming Language—by Brian Kernighan and Dennis Ritchie. Unfortunately, this appendix did not
provide a complete and unambiguous definition of C, meaning that vendors were left to interpret some aspects of the language on their own.

Contents At a Glance

Preface xvii
1 Introduction 1
2 Some Fundamentals 5
3 Compiling and Running Your First Program 11
4 Variables, Data Types, and Arithmetic
Expressions 21
5 Program Looping 43
6 Making Decisions 65
7 Working with Arrays 95
8 Working with Functions 119
9 Working with Structures 165
10 Character Strings 195
11 Pointers 235
12 Operations on Bits 279
13 The Preprocessor 299
14 More on Data Types 321
15 Working with Larger Programs 333
16 Input and Output Operations in C 347
17 Miscellaneous and Advanced Features 373
18 Debugging Programs 389
19 Object-Oriented Programming 411
A C Language Summary 425
B The Standard C Library 467
C Compiling Programs with gcc 493
D Common Programming Mistakes 497
E Resources 501


Happy learning!

Friendly Websites