Page 4 - C-Language
P. 4

Examples                                                                                            38
            atomics and operators                                                                             38


        Chapter 7: Bit-fields                                                                                40

          Introduction                                                                                        40

          Syntax                                                                                              40

          Parameters                                                                                          40

          Remarks                                                                                             40

          Examples                                                                                            40

            Bit-fields                                                                                        40

            Using bit-fields as small integers                                                                41

            Bit-field alignment                                                                               42
            When are bit-fields useful?                                                                       43

            Don'ts for bit-fields                                                                             44

        Chapter 8: Boolean                                                                                   45


          Remarks                                                                                             45

          Examples                                                                                            45

            Using stdbool.h                                                                                   45
            Using #define                                                                                     45

            Using the Intrinsic (built-in) Type _Bool                                                         46

            Integers and pointers in Boolean expressions.                                                     46

            Defining a bool type using typedef                                                                47

        Chapter 9: Command-line arguments                                                                    49

          Syntax                                                                                              49

          Parameters                                                                                          49

          Remarks                                                                                             49

          Examples                                                                                            50


            Printing the command line arguments                                                               50
            Print the arguments to a program and convert to integer values                                    50

            Using GNU getopt tools                                                                            51

        Chapter 10: Comments                                                                                 55

          Introduction                                                                                        55

          Syntax                                                                                              55
   1   2   3   4   5   6   7   8   9