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

 

The continue Statement in C

The keyword continue allows us to take up the control to the beginning of the loop, bypassing the statements inside the

Read More »


The break Statement in C

While writing C program, We often come across situations where we want to jump out of a loop instantly, without

Read More »


The Odd Loop in C

Uses of Odd Loop In real life programming one comes across a situation when it is not known beforehand how

Read More »


Nesting of Loops in C

The way if statements can be nested, similarly whiles and for can also be nested. To understand how nested loops

Read More »


Download C / C ++ IDE - C program editor

Main SiteC-Free is a professional C/C++ integrated development environment (IDE) that support multi-compilers. Use of this software, user can edit, build, run

Read More »


Write down the simple interest program using for loop in c

Here a C program to calculate simple interest using for loop. main ( ) { int p, n, count ;

Read More »


The For loop in C

For loop is probably the most popular looping instruction. The for allows us to specify three things about a loop

Read More »


The While loop in C

It is often the case in programming that you want to do something a fixed number of times. Perhaps you

Read More »


The loop Control Structure in C

The programs that we have learned/developed in this tutorial so far used either a sequential or a decision control instruction.

Read More »


The Conditional Operators in C

The conditional operators ? and : are sometimes called ternary operators since they take three arguments. In fact, they form

Read More »


Hierarchy of Operators Revisited in C

Since we have now added the logical operators to the list of operators we know, it is time to review

Read More »


! the logical operator not in C

In this article we will learn about the NOT operator, written as !. This operator reverses the result of the

Read More »


C Program to calculate the salary

Problem Statement: Write a program to calculate the salary as per the following table: Solution: /* C program to calculate salary

Read More »


Else if clause in C

Let’s have an example to understand else if clause : /* else if ladder demo */ main( ) { int

Read More »


Logical Operator in C

C allows usage of three logical operators, namely, &&, || and !. These are to be read as ‘AND’ ‘OR’

Read More »


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