Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Standard view
Full view
of .
Look up keyword or section
Like this

Table Of Contents

C Language Overview
Facts about C
Why to use C ?
C Programs
C Environment Setup
Text Editor
The C Compiler
Installation on Unix/Linux
Installation on Mac OS
Installation on Windows
C Program Structure
C Hello World Example
Compile & Execute C Program
C Basic Syntax
Tokens in C
Semicolons ;
Whitespace in C
C Data Types
Integer Types
Floating-Point Types
The void Type
C Variables
Variable Declaration in C
Variable Initialization in C
Lvalues and Rvalues in C
C Constants and Literals
Integer literals
Floating-point literals
Character constants
String literals
Defining Constants
The #define Preprocessor
The const Keyword
C Storage Classes
The auto Storage Class
The register Storage Class
The static Storage Class
The extern Storage Class
C Operators
Arithmetic Operators
Arithmetic Operators
Relational Operators
Logical Operators
Bitwise Operators
Assignment Operators
Decision Making in C
if statement
Flow Diagram
if...else statement
The if...else if...else Statement
Nested if statements
switch statement
Nested switch statements
The ? : Operator
C Loops
while loop in C
for loop in C
do...while loop in C
nested loops in C
break statement in C
continue statement in C
goto statement in C
The Infinite Loop
C Functions
Defining a Function
Function Declarations
Calling a Function
Function Arguments
Function call by value
Function call by reference
C Scope Rules
Local Variables
Global Variables
Formal Parameters
Initializing Local and Global Variables
C Arrays
Declaring Arrays
Initializing Arrays
Accessing Array Elements
Multi-dimensional Arrays
Two-Dimensional Arrays
Initializing Two-Dimensional Arrays
Accessing Two-Dimensional Array Elements
Passing Arrays as Function Arguments
Return array from function
Pointer to an Array
C Pointers
What Are Pointers?
How to use Pointers?
NULL Pointers in C
Pointer arithmetic
Incrementing a Pointer
Decrementing a Pointer
Pointer Comparisons
Array of pointers
Pointer to Pointer
Passing pointers to functions
Return pointer from functions
C Strings
C Structures
Defining a Structure
Accessing Structure Members
Structures as Function Arguments
Pointers to Structures
C Unions
Defining a Union
Accessing Union Members
Bit Field Declaration
typedef vs #define
Input & Output
The Standard Files
The getchar() & putchar() functions
The gets() & puts() functions
The scanf() and printf() functions
File I/O
Opening Files
Closing a File
Writing a File
Reading a File
Binary I/O Functions
Preprocessors Examples
Predefined Macros
Preprocessor Operators
Macro Continuation (\)
Stringize (#)
Token Pasting (##)
The defined() Operator
Once-Only Headers
Computed Includes
Type Casting
Integer Promotion
Usual Arithmetic Conversion
Error Handling
The errno, perror() and strerror()
Divide by zero errors
Program Exit Status
Number Factorial
Fibonacci Series
Allocating Memory Dynamically
Resizing and Releasing Memory
0 of .
Results for:
No results containing your search query
P. 1
Cprogramming Tutorial

Cprogramming Tutorial

Ratings: (0)|Views: 1|Likes:
Published by ashishpatel_99

More info:

Published by: ashishpatel_99 on Sep 09, 2013
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less





You're Reading a Free Preview
Pages 4 to 40 are not shown in this preview.
You're Reading a Free Preview
Pages 44 to 109 are not shown in this preview.
You're Reading a Free Preview
Pages 113 to 126 are not shown in this preview.
You're Reading a Free Preview
Pages 130 to 145 are not shown in this preview.

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->