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

 

C Program to Check Leap Year

Program to Check Leap Year   #include <stdio.h>   int main() {   int year;   printf("Enter a year: ");

Read More »


Find LCM of two numbers in C

Find LCM of two numbers in C What is LCM The Least Common Multiple ( LCM ) is also referred to as

Read More »


Functions in C

Functions C Human is an intelligent species, but still cannot perform all of life’s tasks all alone. He has to

Read More »


C program to convert time in Hours:Minutes:Seconds to seconds

C program to convert time in Hours:Minutes:Seconds to seconds /* C program to convert time in hours:minutes:seconds to seconds */

Read More »


Selection Sort Algorithm

Selection Sort Algorithm Selection sort is an algorithm that selects the smallest element from an unsorted list in each iteration

Read More »


Heap sort algorithm

Heap sort algorithm Heap sort was invented by John Williams. Heap is a complete binary tree in which every parent node be

Read More »


Quick Sort Algorithm

Quick Sort Algorithm There are may versions of Quick sort, which is one of the most popular sorting methods due

Read More »


Merge Sort Algorithm

Merge Sort Algorithm Merge Sort is a Divide and Conquer algorithm. It divides input array in two halves, calls itself for the

Read More »


Matrix multiplication program in C

Matrix multiplication program in C Matrix multiplication in C language to calculate the product of two matrices (two-dimensional arrays). A

Read More »


C Program to Check whether an Alphabet is Vowel or Consonant

C Program to Check whether an Alphabet is Vowel or Consonant This program takes the character value(entered by user) as

Read More »


IP Address Program in C

IP Address Program in C What is IP Address An Internet Protocol address (IP address) is a numerical label assigned to each

Read More »


C Program for Cyclic Redundancy Check : CRC

C Program for Cyclic Redundancy Check : CRC What is CRC: A cycle redundancy check (CRC) is an error detecting

Read More »


Merry Christmas - Program for Christmas Tree in C

Merry Christmas – Program for Christmas Tree in C   To print a Christmas tree, we are printing pyramids of various sizes

Read More »


C Program to Add two numbers

C Program to Add two numbers Program to add two integer numbers To read the input numbers we are using

Read More »


How to Write and Run a C Program in Ubuntu

How to Write and Run a C Program in Ubuntu Linux is becoming a programming heaven for developers. This is

Read More »


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