The book 'Trouble Free C' (Book for C-Programming) designed for engineering / non-engineering students. The subject matter of this book has been divided into 17 chapters. Each chapter has been written and developed with immensely simplified programs, which will clear the core concepts of 'C' language. This book assumes no previous exposure to the 'C' programming language, and very useful for inexperienced programmers. It also contains some good programming examples, which might be useful for experienced programmers. All the programming examples given in this book have been tested on Turbo C 3.0.
Additional Info
  • Publisher: Laxmi Publications
  • Language: English
  • ISBN : 978-81-318-0537-4
  • Chapter 1

    SETTING THE BASE FOR ‘C’ PROGRAMMING Price 2.99  |  2.99 Rewards Points

    If you have no prior idea of programming, software, translators, RAM etc. then you must not skip this chapter. This chapter sets your base for the programming. The introduction part and section 1.2 gives you an idea of human language and computer language. It tells you how they are different and discuss all different types of computer languages like machine, assembly and high level.
  • Chapter 2

    INTRODUCTION TO ‘C’-BASICS Price 2.99  |  2.99 Rewards Points

    C is a programming language developed at AT & T’s bell laboratory of USA in 1972. It was designed and written by Dennis Ritchie. C is a general purpose programming language with lots of features. It is called middle level language because it reduces the gap between high-level language and low-level language and at the same time incorporating the best elements of high-level language with the control and functionality of assembly language. As a middle level language C allows the manipulation of bits and bytes & addresses the basic building block elements with which the computer functions. It provides a relatively good programming efficiency and relatively good machine efficiency.
  • Chapter 3

    INTRODUCTION TO OPERATORS & EXPRESSIONS IN ‘C’ Price 2.99  |  2.99 Rewards Points

    This chapter lets acquaint with the basic fundamental operators available in C. It starts with the introduction and tells you what is the basic operator and expression in C. It then gives you an idea of unary and binary operators in C. All the primitive operators like Arithmetic, Logical, Relational, Assignment, Increment/decrement, and Bitwise are explained in full detail with lots of programming examples. It also illustrates ternary operator? : available in C. One special operator which is also act as function i.e. sizeof operator is also discussed. The comma operator is also given special mention. The Chapter also gives precedence table of all the operators in C with their associatively. Approximately 15 fully solved programs are given which makes your concepts better about the precedence of operators.
  • Chapter 4

    DECISION MAKING AND BRANCHING IN ‘C’ Price 2.99  |  2.99 Rewards Points

    The chapters discuss the basics of decision making and branching in C. Decision making is achieved in C with the help of if-else construct. All different forms of this selective construct are discussed. The simple if, if-else, nesting of if-else and else-if ladder, all are discussed in detail by first giving the syntaxes of each then illustrating them numerous programming examples.
  • Chapter 5

    INTRODUCTION TO LOOPING STRUCTURE IN ‘C’ Price 2.99  |  2.99 Rewards Points

    The Chapter takes you to a long journey of one of the most important and very useful programming construct, the loop. A basic introduction to loop is given in the beginning of the Chapter. Introduction to all different types of loops while, for and do-while available in C is given. While loop is explained in detail with the help of lot of programming examples in the step-by-step manner i.e., starting from basic small programs up to complex programs have been explained in a lucid manner. Common programming errors in the usage are also pin pointed through small programs. Use of break and continue statement is illustrated with examples.
  • Chapter 6

    WORKING WITH ARRAYS IN ‘C’ Price 2.99  |  2.99 Rewards Points

    An array is a data structure which can store multiple elements of same data type (homogeneous) under one name. In another way we say that array is a collection of variables of same type all of which are referred by a common name. Specific element of an array is accessed by an index.
  • Chapter 7

    INTRODUCTION TO FUNCTIONS IN ‘C’ Price 2.99  |  2.99 Rewards Points

    The chapter teaches you the building block of the C programming language, the function. The chapter starts with the introduction to the functions, function definition, how and where they are used, types of function on the basis of creation and on the basis of argument and return type they take. Difference between user defined and library functions have also been discussed. A brief note on the main function is also given.
  • Chapter 8

    WORKING WITH STRING IN ‘C’ Price 2.99  |  2.99 Rewards Points

    The chapter starts with the introduction of strings which is nothing but at an array of characters terminated with null character. In the introduction part definition of string, declaration and defining them in C is given. The next section follows presents number of programming examples of strings which makes your concepts of strings better. Array of strings is covered in section 8.3 with lots of programming examples. Small programs like reading and displaying the array of strings are given, program for sorting the string and many other programs are covered.
  • Chapter 9

    INTRODUCTION TO POINTERS IN ‘C’ Price 2.99  |  2.99 Rewards Points

    The chapter introduces you the most interesting and robust features of C programming language “Pointers”.
  • Chapter 10

    INTRODUCTION TO STRUCTURE AND UNION Price 2.99  |  2.99 Rewards Points

    The chapter starts with the introduction to the most important user defined data types which is also derived type, structures and unions in C.
  • Chapter 11

    INTRODUCTION TO STORAGE CLASSES Price 2.99  |  2.99 Rewards Points

    The chapter discuss the attributes which all the variable in C possess i.e., storage class. The introduction and second part discuss the basic idea of scope and lifetime variable. It also discusses local and global variable. It explains the meaning of scope by giving lots of examples which includes use of functions also. The side effects of use of global variables have been discussed. It gives a very brief idea of storage classes and what it tells about variables. All 4 storage classes are illustrated as separate sections. Features of all the storage classes are discussed first by giving them as key points and later with lots of examples.auto, exter, register and static, the effect of using these storage classes on variables have been discussed. Some important points related with their usage in programming are mentioned by giving appropriate programming examples.
  • Chapter 12

    INTRODUCTION TO FILE HANDLING IN ‘C’ Price 2.99  |  2.99 Rewards Points

    The chapter provides detailed discussion of file handling in ‘C’. A file is a means for the permanent storage of data. The introduction part makes your basis by first telling you the normal working of program and data and its storage. Concept of file is then introduced by defining it and its modus operandi. Concept of stream, text and binary file, high and low level files is introduced. Opening and closing of file is presented in the next section. It teaches you how to open close a file in C with the help of built-in data structure FILE. All the various modes for file manipulation is given in the form of table with their description. A lot of programming examples given which perform manipulation of data items stored in the file by opening in different modes.
  • Chapter 13

    DYNAMIC MEMORY ALLOCATION Price 2.99  |  2.99 Rewards Points

    The chapter discusses one of the most important concepts in C programming, the concept of dynamic memory allocation. The introduction part covers the basics of static allocation and dynamic allocation. It also covers the run-time view of the program and explains how static and dynamic allocation is done.
  • Chapter 14

    INTRODUCTION TO ‘C’ PREPROCESSOR Price 2.99  |  2.99 Rewards Points

    This is the chapter which deals with C preprocessor is so depth which I think no book has ever dealt. Of course some compiler related macros have not been covered but I’m sure whatever I have covered is the best matter on C preprocessor you will get any where. To start with, introduction of preprocessing given with a table of all preprocessor directives. A number of programming examples then given which makes use of some of the preprocessor directives. The difference between #include“filename” and #include< filename>is illustrated.
  • Chapter 15

    MISCELLANEOUS BUILT-IN FUNCTION OF ‘C’ Price 2.99  |  2.99 Rewards Points

    The chapter discusses the usage of some of the most important functions along with their prototype, and header file used. The printf and scanf have been dealt rigorously as they are the most common functions used. Formatting with printf is discussed by giving it a separate heading as it is considered an important topic: Functions for random generation of numbers like rand, random, srand and randomized are given. Depending upon suitability and requirement user can use them. Some time and date related functions, functions for printing colored text and background, some mathematical function, function for producing sound from speakers etc. are covered. Presence of a key hit from the keyboard through a function and function for the position of cursor at a given specified row and columns is covered.
  • Chapter 16

    INTRODUCTION TO DATA MODIFIER AND MATH FUNCTIONS IN ‘C’ Price 2.99  |  2.99 Rewards Points

    In earlier chapter we have already discussed about “Data Types and Names in C,” you learned about several data types, such as char, int, float, and double, in the C language. In this chapter, you’ll learn about four data modifiers that enable you to have greater control over the data.
  • Chapter 17

    INTRODUCTION TO TOP ‘C’ SECRETS Price 2.99  |  2.99 Rewards Points

    This chapter contains some ultimate C secrets. Each secrets is listed with some theory and some code, some are only as theory. Start reading, they are waiting for you.

About the Author