Buch, Englisch, 518 Seiten, Format (B × H): 175 mm x 249 mm, Gewicht: 1021 g
Buch, Englisch, 518 Seiten, Format (B × H): 175 mm x 249 mm, Gewicht: 1021 g
ISBN: 978-1-4822-1450-5
Verlag: PAPERBACKSHOP UK IMPORT
Designed for a compulsory fundamental course, C: From Theory to Practice uses a hands-on approach to teach the C programming language, using numerous examples and a clear, concise presentation. Easy to use and classroom tested, this textbook includes more than 500 exercises and examples of progressive difficulty to help students in understanding all the aspects and peculiarities of C. The exercises test students on various levels of programming and the examples enhance their concrete understanding of programming know-how. Divided into three parts, this book:
- Introduces the basic concepts of C, like getting input from a user, C’s operators, selection statements, and loops.
- Emphasizes major features of C such as arrays, pointers, functions and strings.
- Covers advanced topics such as like searching and sorting arrays’ algorithms, structures and unions, memory management, the preprocessor and files.
The book tests the skills of beginners and advanced developers by providing an easy-to-read compilation of the C theory enriched with tips and advice as well as difficulty-scaled solved programming exercises. It decodes the secrets of the C language, providing inside information and programming knowledge through practical examples and meaningful advice. The examples are designed to be short, concrete, and substantial, quickly giving students the know-how they need.
Zielgruppe
Undergraduate students taking a course on C; computer and IT professionals interested in the C language.
Autoren/Hrsg.
Weitere Infos & Material
Introduction to C
History of C
ANSI Standard
Advantages of C
Disadvantages of C
C Program Life Cycle
Write a C Program
First C Program
Compilation
Linking
Run the Program
Reference
Data Types, Variables, and Data Output
Variables
Rules for Naming Variables
Variable Name Conventions
Declaring Variables
Assigning Values to Variables
Constants
#define Directive
printf() Function
Type Casting
Exercises
Unsolved Exercises
Getting Input with scanf()
scanf() Function
Exercises
Unsolved Exercises
Operators
Assignment Operator
Arithmetic Operators
Increment and Decrement Operators
Relational Operators
Exercises
Not Operator !
Exercises
Compound Operators
Exercise
Logical Operators
Exercises
Comma Operator
Exercise
sizeof Operator
enum Type
Bitwise Operators
Exercise
Shift Operators
Exercises
Operator Precedence
Unsolved Exercises
Program Control
if Statement
if-else Statement
Nested if Statements
Exercises
Conditional Operator ?
Exercises
switch Statement
Exercises
Unsolved Exercises
Loops
for Statement
Exercises
break Statement
continue Statement
Exercises
Nested Loops
Exercises
while Statement
Exercises
do-while Statement
Exercises
goto Statement
Unsolved Exercises
Arrays
Declaring Arrays
Accessing Array Elements
Array Initialization
Exercises
Two-Dimensional Arrays
Exercises
Unsolved Exercises
Pointers
Pointers and Memory
Declaring Pointers
Pointer Initialization
NULL Value
Use a Pointer
Exercises
void* Pointer
Use of const Keyword
Pointer Arithmetic
Exercises
Pointers and Arrays
Exercises
Arrays of Pointers
Exercises
Pointer to Pointer
Exercises
Pointers and Two-Dimensional Arrays
Exercises
Pointer to Function
Exercise
Array of Pointers to Functions
Unsolved Exercises
Characters
char Type
Exercises
getchar() Function
Exercises
Strings
String Literals
Storing Strings
Exercises
Writing Strings
Exercise
Pointers and String Literals
Exercises
Read Strings
For a Safe Reading of Strings
Exercises
String Functions
Exercises
Exercises
Exercises
Two-Dimensional Arrays and Strings
Exercises
Unsolved Exercises
Functions
Function Declaration
Return Type
Function Parameters
Function Definition
return Statement
Function Call
Exercises
Variables Scope
Arrays as Arguments
Exercises
Function Call with Parameter Two-Dimensional Array
Exercises
Passing Data in main() Function
Exercises
Functions with Variable Number of Parameters
Recursive Functions
Exercises
Unsolved Exercises
Searching and Sorting Arrays
Searching Arrays
Exercises
Exercises
Sorting Arrays
Exercises
Structures and Unions
Structures
Exercise
Unions
Exercise
Unsolved Exercises
Memory Management and Data Structures
Memory Blocks
Static Memory Allocation
Dynamic Memory Allocation
memcpy() and memmove() Functions
memcmp() Function
Exercises
Dynamic Data Structures
Examples
Exercises
Unsolved Exercises
Files
Files in C
Open a File
Close a File
Process a File
Write Data in a Text File
Exercises
Read Data from a Text File
Exercises
End of File
Write and Read Data from a Binary File
Exercises
feof() Function
Exercise
Unsolved Exercises
Preprocessor Directives and Macros
Simple Macros
Macros with Parameters
# and ## Preprocessor Operators
Preprocessor Directives and Conditional Compilation
Exercises
Unsolved Exercises
Review Exercises
Appendix A
Appendix B
Appendix C
Appendix D
Bibliography
Index




