Lab in C

Preface

Hands-on in C programming is the result of many years of hard works done by professors, teachers, students and authors. This book is started and made open-source in order to motivate young readers who are interested to learn programming.

In the first edition of the book, we had only published the list of programming examples in each chapters.

Hands-on in C programming is always improved in each edition. We are always looking for constructive feedbacks and suggestions. So, if you feel that there could have been certain work done better than what is currently included, feel free to get in touch with any one of the contributors or please drop a line to itsmeskm99@gmail.com.

All the best and happy programming!

Target Audience

Students, teachers and anyone who wants start learning programming. This book contains enough resources, codes and references for the readers to get familar with C programming.

What this book covers

  • Chapter 1, Fundamentals of C: It covers topics related to variables and algorithmic expression, symbolic constants, character input and output, external variables and scopes, variables naming, data types and sizes, constants, declarations, arithmetic operators, relational and logical operators, type conversions, increment and decrement operators, bitwise operators, assignment operators and expression, conditional expressions and precedence and order of evaluation.

  • Chapter 2, Control Structure: It contains topics related to statements and blocks, if-else, else-if, switch, break and continue, and goto and lables.

  • Chapter 3, Looping: It contains topics related to for-loop, while loop, do-while loop, break and continue and nested looping.

  • Chapter 4, Array: This chapter outlines topics associated with introduction to array, 1-D array, 2-D array, address arithmetic, array operations.

  • Chapter 5, Function: This chapter contains topics related to basic of functions, functions returning non-integers, external variables, scope rules, header files, static variables, register variables, block Structure, initialization, recursion, and the C preprocessor.

  • Chapter 6, Pointers: This chapter introduces topics related to introduction to pointer, pointers and addresses, pointers and functional arguments, pointers and array, address arithmetic, character pointers and functions, pointers to functions, pointers and arrays.

  • Chapter 7, Strings: This chapter deals with introduction to string, string operations, built-in-string functions, user-defined string functions..

  • Chapter 8, Structure & Union: This chapter introduces basics of structures and unions, structures and functions, arrays of structures, pointer of structures, self-referential structures, table lookup, typedef, unions, and bit fields.

  • Chapter 9, File: This chapter outlines basic I/O operations with files.

  • Chapter 10, Graphics: This chapter outlines basics of graphics, getting started with computer graphics, drawing shapes and projects.