Book on C 4th edition




Authors:Al Kelley, Ira Pohl

Renting Options

Own it? Sell it back

Book on C Description

A Book on C: Programming in C 4 Edition (Each chapter concludes with a Summary and Exercises.) Preface. Starting from Zero. Why C? ANSI C Standard. From C to C++. From C and C++ to Java. 1. An Overview of C. Programming and Preparation. Program Output. Variables, Expressions, and Assignment. The Use of #define and #include. The Use of printf() and scanf(). Flow of Control. Functions. Call-by-Value. Arrays, Strings, and Pointers. Arrays. Strings. Pointers. Files. Operating System Considerations. Writing and Running a C Program. Interrupting a Program. Typing an End-of-file Signal. Redirection of the Input and the Output. 2. Lexical Elements, Operators, and the C System. Characters and Lexical Elements. Syntax Rules. Comments. Keywords. Identifiers. Constants. String Constants. Operators and Punctuators. Precedence and Associativity of Operators. Increment and Decrement Operators. Assignment Operators. An Example: Computing Powers of 2. The C System. The Preprocessor. The Standard Library. 3. The Fundamental Data Types. Declarations, Expressions, and Assignment. The Fundamental Data Types. Characters and the Data Type char. The Data Type int. The Integral Types short, long, and unsigned. The Floating Types. The Use of typedef. The sizeof Operator. The Use of getchar() and putchar(). Mathematical Functions. The Use of abs() and fabs(). UNIX and the Mathematics Library. Conversions and Casts. The Integral Promotions. The Usual Arithmetic Conversions. Casts. Hexadecimal and Octal Constants. 4. Flow of Control. Relational, Equality, and Logical Operators. Relational Operators and Expressions. Equality Operators and Expressions. Logical Operators and Expressions. Short-circuit Evaluation. The Compound Statement. The Expression and Empty Statement. The if and the if-else Statements. The while Statement. The for Statement. An Example: Boolean Variables. The Comma Operator. The do Statement. An Example: Fibonacci Numbers. The goto Statement. The break and continue Statements. The switch Statement. The Conditional Operator. 5. Functions. Function Definition. The return Statement. Function Prototypes. Function Prototypes in C++. An Example: Creating a Table of Powers. Function Declarations from the Compiler’s Viewpoint. Limitations. An Alternate Style for Function Definition Order. Function Invocation and Call-by-Value. Developing a Large Program. What Constitutes a Large Program? Using Assertions. Scope Rules. Parallel and Nested Blocks. Using a Block for Debugging. Storage Classes. The Storage Class auto. The Storage Class extern. The Storage Class register. The Storage Class static. Static External Variables. Default Initialization. Recursion. Efficiency Considerations. An Example: The Towers of Hanoi. 6. Arrays, Pointers, and Strings. One-dimensional Arrays. Initialization. Subscripting. Pointers. Call-by-Reference. The Relationship Between Arrays and Pointers. Pointer Arithmetic and Element Size. Arrays as Function Arguments. An Example: Bubble Sort. Dynamic Memory Allocation With calloc() and malloc(). Offsetting the Pointer. An Example: Merge and Merge Sort. Strings. String-Handling Functions in the Standard Library. Multidimensional Arrays. Two-dimensional Arrays. The Storage Mapping Function. Formal Parameter Declarations. Three-dimensional Arrays. Initialization. The Use of typedef. Arrays of Pointers. Arguments to main(). Ragged Arrays.

Log In

or Create an account

Employers & Housing Providers

Employers can list job opportunities for students

Post a Job

Housing Providers can list available housing

Post Housing

Log In

Forgot your password?

Your new password has been sent to your email!

Logout Successful!

Please Select Your College/University:

You just missed it! This listing has been filled.

Post your own housing listing on Uloop and have students reach out to you!

Upload An Image

Please select an image to upload
Note: must be in .png, .gif or .jpg format
Provide URL where image can be downloaded
Note: must be in .png, .gif or .jpg format