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

 

Forms of if in C

The if statement can take any of the following forms: if ( condition ) do this ; if ( condition

Read More »


Nested if else in C

It is perfectly all right if we write an entire if-else construct within either the body of the if statement

Read More »


Multiple Statements within if in C

It may so happen that in a program we want more than one statement to be executed if the expression

Read More »


If Statement in C

Like most languages, C uses the keyword if to implement the decision control instruction. The general form of if statement

Read More »


Introduction to Decision Control Structure in C

Decision !!! we all need to alter our actions in the face of changing circumstances. If the weather is fine,

Read More »


write a C program to obtain the sum of the first and last digit of this number

Problem Statement: If a four-digit number is input through the keyboard, write a program to obtain the sum of the

Read More »


write a C program to reverse the number

Problem Statement : If a five-digit number is input through the keyboard, write a program to reverse the number. Answer:

Read More »


Write a C program to interchange the contents of C and D

Problem Statement :  Two numbers are input through the keyboard into two locations C and D. Write a program to

Read More »


Write a C program to calculate the area & perimeter of the rectangle, and the area & circumference of the circle

Problem Statement: The length & breadth of a rectangle and radius of a circle are input through the keyboard. Write

Read More »


write a C program for Conversion of Temperature from Fahrenheit to Centigrade

Problem Statement: Temperature of a city in Fahrenheit degrees is input through the keyboard. Write a c program to convert

Read More »


Write a c program for Calculation of aggregate and percentage marks

Problem Statement: If the marks obtained by a student in five different subjects are input through the keyboard, find out

Read More »


Summary of C learning - First program in C

The three primary constants and variable types in C are integer, float and character. A variable name can be of

Read More »


Control Instructions in C

As the name suggests the ‘Control Instructions’ enable us to specify the order in which the various instructions in a

Read More »


Hierarchy of Operations in C

While executing an arithmetic statement, which has two or more operators, we may have some problems as to how exactly

Read More »


Integer and Float Conversions in C

In order to effectively develop C programs, it will be necessary to understand the rules that are used for the

Read More »


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