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 print map of India [ C Tutorials ]

The string is a run-length encoding of the map of India. Alternating characters in the string stores how many times

Read More »


C program to print happy holi

C program to print happy holi Here is the simple program written in c to Print Happy Holi.   #include<stdio.h>

Read More »


Pascal trangle program in c

Pascal trangle program in c Pascal Triangle is a Triangle form which, each number is the sum of immediate top

Read More »


Linear search program in c

Linear search program in c   #include <stdio.h> int main() { int array[100], search, c, n; printf(“Enter number of elements

Read More »


C program to delete an element from an array

C program to delete an element from an array  

Read More »


Sorting program in c

Sorting program in c /* * C program to accept N numbers and arrange them in an ascending order */

Read More »


Write a program to convert temperature Fahrenheit to Centigrade

Write a program to convert temperature Fahrenheit to Centigrade Input temperature in fahrenheit from user. Store it in some variable

Read More »


C program to reverse words in a string

C program to reverse words in a string This profram will invert each word occurring in the input string. Algorithm is

Read More »


C program to draw circles in circles

C program to draw circles in circles #include<graphics.h> #include<conio.h> #include<dos.h> main() { int gd = DETECT, gm, x, y, color,

Read More »


traffic light program in c

Traffic light program in c #include<graphics.h> #include<conio.h> #include<dos.h> #include<stdlib.h> main() { int gd = DETECT, gm, midx, midy; initgraph(&gd, &gm,

Read More »


C program to open a website url

C program to open a website url This program will launch Mozilla Firefox web browser to open a website so

Read More »


C program to draw a 3D bar chart

C program to draw a 3D bar chart #include <graphics.h> #include <conio.h> int main() { int gd = DETECT, gm;

Read More »


Bar chart program in c

Bar chart program in c Chart is drawn using bars filled with different styles and in different colors. #include <graphics.h>

Read More »


Paint program in c language

Paint program in c language   This program can draw different shapes using mouse such as line, circle, pixel and

Read More »


Drawing concentric circles - C graphics examples

Drawing concentric circles – C graphics examples   #include <graphics.h> int main() { int gd = DETECT, gm; int x

Read More »


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