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

 

graphics program for traffic light in C++

Here is traffic light program written in C++ using graphics.h header file. This program is Compiled using Turbo C++. /*Program for traffic Light*/

Read More »


write a C program to calculate the sum of its digits

Problem Statement: If a five-digit number is input through the keyboard, write a program to calculate the sum of its

Read More »


program in C to get the largest element of an array

program in C to get the largest element of an array Problem Statement: Write a program in C to get

Read More »


Write basic C program to calculate gross salary

Write a C Program for the following :- Ramesh’s basic salary is input through the keyboard. His dearness allowance is

Read More »


Moving car program in C++

Moving Car Program in C++ This program is written in C++ using graphics to create and move a car. A

Read More »


Graphics Program in C++ for Analog Clock

Analog Clock is mini project  in a C ++ language. It is graphics application using graphic library <graphics.h>. This program is Compiled using Turbo

Read More »


C program to find armstrong number

What is Armstrong number? Sum of a number’s digits raised to the power total number of digits is armstrong number.

Read More »


Simple Calculator program in C

This is a simple calculator program written in C Language. It Performs addition, subtraction, multiplication or division depending the input

Read More »


tic-tac-toe game in c

This is a tic-tac-toe game in C Language.  You can this as a mini project in C Language.    

Read More »


your first programming language

Read More »


Analog Clock Program in C

Here is simple C program for analog clock.  This can be used as a reference for project reference. /*Note press

Read More »


C Program to Check Leap Year

   A year is a leap year if − It is evenly divisible by 100 If it is divisible by

Read More »


C program for Snake game

Snake Game is mini project  in a C language. It is console application without graphic library that’s why it is more

Read More »


C Program to find prime number

What is prime number? Definition of prime number A number is considered as prime number when it satisfies the below

Read More »


The do-while Loop in C

There is a minor difference between the working of while and do while loops. This difference is the place where

Read More »


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