TAILIEUCHUNG - The C Book1

The C Book1Mike Banahan Declan Brady Mark DoranJanuary 19911 Conversionto LaTeX by Ward van Wanrooij. Any layout issues are caused bymy conversion script and do not reflect on the authors. | The C Book1 Mike Banahan Declan Brady January 1991 Mark Doran 1 Conversion to LaTeX by Ward van Wanrooij. Any layout issues are caused by my conversion script and do not reflect on the authors. Also available on-line at http c_book CONTENTS 1 Contents Preface 1 About This Book. 1 The Success of C. 2 Standards. 4 Hosted and Free-Standing Environments. 5 Typographical conventions. 6 Order of topics. 6 Example programs. 7 Deference to Higher Authority. 7 Address for the Standard. 7 1 An Introduction to C 9 The form of a C program. 9 Functions . 10 A description of Example 12 What was in it . 12 Layout and comment. 12 Preprocessor statements. 13 Dehne statements. 14 Summary . 14 Function declaration and dehnition. 15 Declaration. 15 Dehnition . 15 Summary . 16 Strings . 17 The main function. 18 Declarations. 18 Assignment statement . 19 The while statement . 19 The return statement . 20 Summary . 21 ii CONTENTS Progress so far . 21 Some more programs. 21 A program to find prime numbers. 22 The division operators. 24 An example performing input. 24 Simple arrays. 25 Summary. 27 Terminology. 27 Summary . 28 Exercises. 28 2 Variables and Arithmetic 31 Some fundamentals . 31 The alphabet of C . 31 Basic Alphabet. 32 Trigraphs . 33 Multibyte Characters. 34 Summary. 35 The Textual Structure of Programs . 36 Program Layout. 36 Comment . 37 Translation phases . 38 Keywords and identifiers. 38 Keywords. 38 Identifiers. 39 Declaration of variables. 40 Real types. 41 Summary of real arithmatic. 44 Printing real numbers . 44 Integral types. 45 Plain integers. 45 Character variables. 46 More complicated types . 49 Summary of integral types. 51 Printing the

TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
3    25    0    19-04-2021