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

 

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 sequence

Read 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 is

Read 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\tEduguru

Read 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 the

Read 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 by

Read 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 a

Read More »


Structure in C programming

Structure is a group of variables of different data types represented by a single name. Lets say we need to

Read 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 C

Read More »


Strings and String functions in c

String is an array of characters. In this post, we learn how to declare strings, how to work with strings

Read More »


Two dimensional (2D) arrays in C programming

An array of arrays is known as 2D array. The two dimensional (2D) array in C programming is also known

Read More »


Arrays in C programming

An array is a group (or collection) of same data types. For example an int array holds the elements of

Read More »


goto statement in c programming

The goto statement is rarely used because it makes program confusing, less readable and complex. Also, when this is used,

Read More »


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