C Tutorial

C Programming Tutorial
C Programming Tutorial

Welcome to the C Knowledge Base and Tutorial

Part 1 – Basic knowledge

Part 2 – Decision Control in C

Part 3 – Loop structure

  • Loops
  • The while Loop
  • The for Loop
  • The Odd Loop
  • The break Statement
  • The continue Statement
  • The do-while Loop
  • Summary of loop structure
  • Quiz of loop structure – Test your Skill
  • Examples

Part 4 – The Case Control Structure

  • Decisions Using switch
  • switch and if-else
  • The Goto Keyword
  • Summary of the case control structure
  • Quiz of case control structure
  • Examples

Part 5 – Functions & Pointers

Introduction of function

Why use function

Passing Values between Functions

Scope Rule of Functions

Calling Convention

Advanced Features of Functions

Function Declaration and Prototypes

Call by Value and Call by Reference

Pointers

Recursion

Recursion and Stack

Adding Functions to the Library

Summary of Function and Pointer

Quiz of function and pointer

Part 6 – Arrays

What are Arrays

Array Initialization

Passing Array Elements to a Function

Pointers and Arrays

Passing an Entire Array to a Function

Two Dimensional Arrays

Pointers and 2-Dimensional Arrays

Pointer to an Array

Passing 2-D array to a Function

Array of Pointers

Limitation of Array of Pointers to Strings

Summary of Array

Quiz of Array

Part 7 – Structures

Introduction of Structure

Array of Structures

Uses of Structures

Summary of Structure

Quiz of Structure

part 8 – Console Input/Output

Types of I/O

Formatted Console I/O Functions

sprintf( ) and sscanf( ) Functions

Unformatted Console I/O Functions

Summary of console input output

Quiz of console input output

part 9 – File Input/Output

  • Data Organization
  • File Operations
    • Opening a File
    • Reading from a File
    • Trouble in Opening a File
    • Closing the File
  • Counting Characters, Tabs, Spaces
  • A File-copy Program
    • Writing to a File
  • File Opening Modes
  • String (line) I/O in Files
  • Record I/O in Files
  • Text Files and Binary Files
  • Database Management
  • Low Level Disk I/O
    • A Low Level File-copy Program
  • I/O Under Windows
  • Summary of  File Input/Output
  • Quiz of File Input/Output

 

Variables and Data Types

Variables are a way of reserving memory to hold some data and assign names to them so that we don’t

Read More »


Variables in C

A Variable represents some memory location which is used to store some value. Unlike constants, a variable may take different

Read More »


Constants in C

Constants are those tokens in C language whose value is fixed and does not change during the execution of a

Read More »


Identifiers in C

Identifiers are user-defined tokens used to name variables, functions, etc. An identifier consists of a sequence of letters and digits.

Read More »


Keywords in C

Keywords are those tokens or words whose meaning are already defined within the C language and cannot be changed. As

Read More »


Tokens in C

In C language the smallest unit of a program is called Token. Tokens are created using the C character set.

Read More »


character set of C

The character set of C comprises of wide range of symbols that can be used to create tokens. These symbols

Read More »


Disadvantages of C language

Though C language has rich set of features and have enormous advantages, however it suffers from some disadvantages. These include:

Read More »


Advantages of C language

C language has in-numerous advantages. The important advantages of C language are described as follows: 1. Easy to Understand: C

Read More »


Features of C language

C language has a rich set of features. These include: 1. There are a small, fixed number of keywords, including

Read More »


History of C language

In 1965, Bell Telephone Laboratories, General Electric Company and Massachusetts Institute of Technology where working together to develop a new

Read More »


Why learn C?

One may argue that if there is plethora of programming languages available, then what makes C language so special? There

Read More »


Introduction to C Programming Language

In order to communicate any idea, thought, instruction or information, humans make use of spoken language. The fact is that

Read More »


Why is the C language important?

The following list illustrates the importance the C programming language, in no particular order: The C language is small and

Read More »


Type Casting in c

Type Casting in c Type casting means changing a variable of one data type into another. The compiler will automatically change

Read More »


« Newer EntriesOlder Entries »