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

 

else if question in c output of the following program

else if question in c output of the following program

Read More »


C program to calculate simple interest using function

C program to calculate simple interest using function Let’s understand the steps: Formula To find simple interest Simple Interest =

Read More »


Which of the following shows the correct hierarchy of arithmetic operations in C

Which of the following shows the correct hierarchy of arithmetic operations in C  

Read More »


In c programing break statement is used to exit from

In c programing break statement is used to exit from  

Read More »


What would be the output of C Program example

What would be the output of C Program example  

Read More »


What would be the output of C Program

What would be the output of C Program    

Read More »


Chess Game program in C language

Chess Game program in C language   #include<stdio.h> #include<conio.h> #include<graphics.h> void blk(int,int); void display(); //enum bool{TRUE,FALSE}; /*void main() //MAIN FUNCTION

Read More »


Tetris Game in C : Game program in C

Tetris Game in C : Game program in C Let us see the Tetris Game in C #include <graphics.h> #include

Read More »


Egg Game Program in C Langauage

Egg Game Program in C Langauage   #include<dos.h> #include<graphics.h> #include<stdio.h> #include<conio.h> #include<process.h> #include<dos.h> #include<stdlib.h> #include<iostream.h> union REGS i,o; main() {

Read More »


Car Racing game in C++

Car Racing game in C++ Here is a Car race game program written in c++ with 5 levels and 3

Read More »


Basics of file handling in C language

Basics of file handling in C language There are two types of files, which can be handled through C programming

Read More »


C program to print Fibonacci series

{\displaystyle F_{n}=F_{n-1}+F_{n-2},}C program to print Fibonacci series Fibonacci series is a series of number in which each number is the sum

Read More »


Pyramid Programs in C

Pyramid Programs in C Here is a example of c program to print pyramid structure as below:         *        * *

Read More »


Insertion Sort Algorithm

Overview : Insertion Sort Algorithm Sorting is the process of arranging a list of elements in a particular order (Ascending

Read More »


an algorithm to check prime number

An algorithm to check prime number A number that is divisible only by itself and 1, is prime number Example

Read More »


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