Beginner's Guide to C by Soni Hari - HTML preview

PLEASE NOTE: This is an HTML preview only and some elements such as links or page numbers may be incorrect.
Download the book in PDF, ePub, Kindle for a complete version.

Beginners’ Guide to C

FIRST EDITION OCTOBER 2014

Copyright Information

©2014 All rights reserved.

Author Gayathri

Image 1

Image 2

Image 3

Image 4

Image 5

Image 6

Image 7

Image 8

Image 9

Image 10

Image 11

Image 12

Image 13

Image 14

Image 15

Image 16

Image 17

Image 18

Image 19

Image 20

Image 21

Image 22

Image 23

Image 24

Image 25

Image 26

Image 27

Image 28

Image 29

Image 30

Image 31

Image 32

Image 33

Image 34

Image 35

Image 36

;

Image 37

This book provides information on Programming with C. It has all the information from the basics that will help a beginner to start working with C programming language. As you all are aware that C is the basic programming language that will enhance and build your capability before learning and working with other programming languages. In addition the book gives you simple examples that will help you to work with the programming language.

Contents

INTRODUCTION TO PROGRAMMING LANGUAGES................................ 9

INTRODUCTION TO C LANGUAGE........................................................... 10

Software programs required for a C program .............................................................................. 10

STRUCTURE OF A C PROGRAM................................................................ 12

Compile & Execute C Program ......................................................................................................... 14

DATA TYPES ............................................................................................... 15

The void Type ...................................................................................................................................... 15

Variables .............................................................................................................................................. 16

VARIABLE DEFINITION IN C .................................................................... 17

Variable Initialization ........................................................................................................................ 17

Keywords ............................................................................................................................................. 18

Constants ............................................................................................................................................. 18

Cha ra cter cons tants ........................................................................................................................... 18

Stri ng Cons tants ................................................................................................................................. 19

Defining Constants............................................................................................................................. 19

The const Keyword ............................................................................................................................ 20

Escape Sequence ................................................................................................................................ 20

Beginners’ Guide to C

OPERATORS ................................................................................................ 23

Arithmetic Operators ........................................................................................................................ 25

Relational Operators ......................................................................................................................... 27

Logical Operators ............................................................................................................................... 29

Arithmetic Assignment Operators.................................................................................................. 30

The Conditional operator ................................................................................................................. 31

LOOPS AND CONDITIONS ......................................................................... 34

CONDITIONAL CONSTRUCTS ................................................................... 34

The if construct .................................................................................................................................. 35

The if..else cons truct .......................................................................................................................... 36

Swi tch construct................................................................................................................................. 37

LOOP CONSTRUCTS ................................................................................... 41

The while loop .................................................................................................................................... 41

The do…while loop............................................................................................................................. 43

The for loop ......................................................................................................................................... 45

ARRAYS........................................................................................................ 49

Character Arrays................................................................................................................................. 51

LIBRARY FUNCTIONS ................................................................................ 55

Mathematical Functions ................................................................................................................... 55

7 | P a g e

Beginners’ Guide to C

String Function.................................................................................................................................... 58

The gets and puts Function .............................................................................................................. 58

8 | P a g e

Beginners’ Guide to C

Find Your Next Great Read

Describe what you're looking for in as much detail as you'd like.
Our AI reads your request and finds the best matching books for you.

Showing results for ""

Popular searches:

Romance Mystery & Thriller Self-Help Sci-Fi Business