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

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 ;
Comments
Identifiers
Keywords
Whitespace in C
C Data Types
Integer Types
Floating-Point Types
The void Type
C Variables
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
Arithmetic Operators
Relational Operators
Logical Operators
Bitwise Operators
Assignment Operators
Misc Operators ↦sizeof & ternary
Operators Precedence in C
Decision Making in C
if statement
Syntax
Flow Diagram
Example
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
Way-1
Way-2
Way-3
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
Accessing Structure Members
Structures as Function Arguments
Pointers to Structures
C Unions
Defining a Union
Accessing Union Members
Bit Fields
Bit Field Declaration
Typedef
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
Preprocessors Examples
Predefined Macros
Preprocessor Operators
Macro Continuation (\)
Stringize (#)
Token Pasting (##)
The defined() Operator
Parameterized Macros
Header Files
Include Syntax
Include Operation
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
Recursion
Number Factorial
Fibonacci Series
Allocating Memory Dynamically
Resizing and Releasing Memory
0 of .
Results for:
No results containing your search query
P. 1
C Programming Tutorial

C Programming Tutorial

Ratings: (0)|Views: 18 |Likes:
Published by Jeza Adanza Buctot
C Programming Tutorial
C Programming Tutorial

More info:

Published by: Jeza Adanza Buctot on Oct 10, 2013
Copyright:Attribution Non-commercial

Availability:

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

10/10/2013

pdf

text

original

You're Reading a Free Preview
Pages 4 to 31 are not shown in this preview.
You're Reading a Free Preview
Pages 35 to 99 are not shown in this preview.
You're Reading a Free Preview
Pages 105 to 146 are not shown in this preview.

You're Reading a Free Preview

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