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 graphics programming

C graphics programming     #include <graphics.h>   #include <conio.h>    int main()   {       int gd = DETECT, gm;      initgraph(&gd, &gm,”C:\\TC\\BGI”);

Read More »


comment in c program

comment in c program   Example – comments in a program #include <stdio.h>   int main()   {      //

Read More »


C Program to Check Whether a Character is Vowel or Consonant

C Program to Check Whether a Character is Vowel or Consonant The five alphabets A, E, I, O and U

Read More »


C Program to Find Factorial of a Number

C Program to Find Factorial of a Number The factorial of a positive number n is given by: factorial of

Read More »


C Program to check whether a Number is a Palindrome

C Program to check whether a Number is a Palindrome A palindrome is a number or a string which is similar when

Read More »


C Program to find LCM of two Numbers using Recursion

C Program to find LCM of two Numbers using Recursion What is LCM LCM: Least Common Multiple of two numbers is

Read More »


C Program to wish happy new year

C Program to wish happy new year #include<stdio.h> #include<conio.h> #include<graphics.h> void shoot(); void shootagain(); void area(); void explode(int,int,int); void main()

Read More »


Goto Keyword in c Program

Goto Keyword in c Program In a difficult programming situation it seems so easy to use a goto to take

Read More »


pointer example program in C

pointer example program in C What would be the output of following pointer program written in c   main( )

Read More »


what would be output of the following pointer program

what would be output of the following pointer program     Introduction to Pointers in C c program example function

Read More »


Introduction to Pointers in C

Introduction to Pointers in C Pointer Notation Consider the declaration, int i = 3 ; This declaration tells the C

Read More »


c program example function and pointer

c program example function and pointer What would be the output of the following programs: main( ) { int i

Read More »


What wound be output of the following c program of function and pointer

What wound be output of the following c program of function and pointer What would be the output of the

Read More »


c program example function prototype

c program example function prototype   What would be the output of the following programs: main( ) { float area

Read More »


c program example of function and value pass to function

c program example of function and value pass to function c program example function and value pass to function 2

Read More »


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