
Welcome to the C Knowledge Base and Tutorial
Part 1 – Basic knowledge
- Introduction to C Programming
- Start Learning C Programming
- What is C?
- Why We should learn C
- Examples
- Start Learning C Programming
- C Character Set : Constants, Variables and Keywords
- Constant and Variable in C:
- C Keywords:
- Examples
- Types of C Constant
- Rules for Constructing Integer Constants
- Rules for Constructing Real Constants
- Rules for Constructing Character Constants
- Examples
- Types of C Variables
- What is variable
- Rules for Constructing Variable Names
- Examples
- The First C Program
- Compilation and Execution of C Program
- Download the turbo c – A free C program editor
- Working with Turbo C
- A word of caution!
- Scanf() : Receiving input in C program
- Point to be Noted
- C Instructions
- Type Declaration Instruction
- Arithmetic Instruction
- Point to be Noted
- Integer and Float Conversions in C
- Few practical examples:
- Type Conversion in Assignments
- Hierarchy of Operations in C
- Associativity of Operators
- Control Instructions in C
- Summary of basic C
- Quiz of Basic C – – Test your skill
- Examples
Part 2 – Decision Control in C
- The if Statement
- If in real life
- Multiple statement within if
- The if else Statement
- Nested if
- forms of if
- Use of logical Operators
- The else if clause
- The ! operator
- Hierarchy of Operators
- The conditional operators
- Summary of Decision Control
- Quiz of Decision control – Test your skill
- Examples
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 Program to calculate Power of N using Recursion
C Program to calculate Power of N using Recursion #include<stdio.h> // function prototype declaration int power(int n1, int n2);Read More »
Program to find Palindrome using Recursion
Program to find Palindrome using Recursion A Palindrome is a sequence that if reversed looks identical to the original sequenceRead More »
Program to print Fibonacci Series using Recursion
Program to print Fibonacci Series using Recursion A Fibonacci series is defined as a series in which each number isRead More »
Program to find Factorial of a Number using Recursion
Program to find Factorial of a Number using Recursion #include<stdio.h> // declaring the function int fact(int); int main() { printf("\n\n\t\tEduguruRead More »
C Program for Adding Two Numbers Using Recursion
C Program for Adding Two Numbers Using Recursion #include<stdio.h> int y; /* Function to add two numbers and return theRead More »
C Program find whether a Number is Prime Or Composite using Recursion
C Program find whether a Number is Prime Or Composite using Recursion Prime Number: A number that is only divisible byRead More »
C program to print digital clock with current time
#include <stdio.h> #include <time.h> int main() { time_t s, val = 1; struct tm* current_time; s = time(NULL);Read More »
Pointers in C Programming
A pointer is a variable that stores the address of another variable. Unlike other variables that hold values of aRead More »
Structure in C programming
Structure is a group of variables of different data types represented by a single name. Lets say we need toRead More »
Function call by reference in C Programming
Before we discuss function call by reference, lets understand the terminologies that we will use while explaining this: Actual parameters:Read More »
Functions in C Programming
A function is a block of statements that performs a specific task. Suppose you are building an application in CRead More »
Strings and String functions in c

Read More »
Two dimensional (2D) arrays in C programming

Read More »
Arrays in C programming

Read More »
goto statement in c programming

Read More »