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

 

Bubble Sort Algorithm

Bubble Sort : Overview Bubble sort is considered the simplest sorting algorithm. Bubble Sort is used to sort a given

Read More »


an algorithm for making a cup of tea

What is algorithm An algorithm is step by step description of the method to solve a problem. It is an

Read More »


an algorithm to find the factorial of a number

What is algorithm An algorithm is step by step description of the method to solve a problem. It is an

Read More »


An algorithm to find the largest among three different numbers

How to start writing algorithm : Step by Step solve the problem Problem Description – Find description of the problem. Problem

Read More »


Basic of Algorithm : Start Writing Algorithm

Basic of Algorithm : Start Writing Algorithm Algorithm are the set of well defined instruction in sequence to solve a

Read More »


Linear search program in c

Linear search program in c What is linear search or sequential search : Definition of linear search As the name

Read More »


binary search program in C

binary search program in C Overview: C Program for binary search This is a program of binary search in C

Read More »


Write a C program to calculate the distance between two cities

Problem Statement: The distance between two cities (in km.) is input through the keyboard. Write a C program to convert

Read More »


C program to find number of days in a month

C program to find number of days in a month This is a simple program to get number of days

Read More »


C switch case program to read weekday number and print weekday name

switch case flow chartC switch case program to read weekday number and print weekday name This program will read weekday number (0-6) and print

Read More »


C Program to Check Even or Odd number

C Program to Check Even or Odd number : C Program Example An even number is an integer that is

Read More »


if else statement in c

The if statement by itself will execute a single statement, or a group of statements, when the expression following if

Read More »


Switch Case Control Structure in C

In real life we are often faced with situations where we are required to make a choice between a number

Read More »


C program to Check VOWEL or CONSONANT

C program to Check VOWEL or CONSONANT This program is written in c language. This is a example of switch

Read More »


C program to print digital clock

C program to print digital clock This program is written in C Language using graphics. This will show day, month, date,

Read More »


« Newer EntriesOlder Entries »
  • sultan69
  • panen99
  • sultan69
  • panen4d
  • panen4d
  • panen4d
  • panen4d
  • panen4d
  • panen4d
  • panen4d
  • panen4d