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

 

Difference between Type Casting and Type Conversion

Difference between Type Casting and Type Conversion 1. Type Casting: In typing casting, a data type is converted into another

Read More »


C Program to find GCD of N Numbers

C Program to find GCD of N Numbers #include<stdio.h> int main() { printf("\n\n\t\tC Program for Greatest Common Divisor(GCD)\n\n\n"); int x,

Read More »


C Program to Display the current Date and Time

C Program to Display the current Date and Time #include<stdio.h> #include<time.h> int main() { printf("\n\n\t\t C Program to display date

Read More »


C program to Change the Text Background Color

C program to Change the Text Background Color Few important points regarding this program are: SetConsoleTextAttribute: Sets the attributes of

Read More »


C Program to create a Menu Driven software using Switch Case

C Program to create a Menu Driven software using Switch Case #include<stdio.h> int main() { printf("\n\n\t\tMenu driven program in c\n\n\n");

Read More »


C Program to Shutdown Linux OS

C Program to Shutdown Linux OS In this program : You need to be logged in as user for above program

Read More »


C Program to shutdown Windows 7

C Program to shutdown Windows 7 This program turns off i.e shutdown your computer system. System function of stdlib.h is used to

Read More »


Basic Program of Pointer

Basic Program of Pointer #include <stdio.h> int main() { printf("\n\n\t\tEduguru - Pointer program\n\n\n"); int var = 24; // actual variable

Read More »


The First Windows Program in C

The First Windows Program in C To keep things simple we would begin with a program that merely displays a

Read More »


C program to print pascal triangle

C program to print pascal triangle #include <stdio.h> long factorial(int); int main() { int i, n, c; printf(“Enter the number of rows you wish to

Read More »


Compare two integers in C

Compare two integers in C Algorithm Let’s first see what should be the step-by-step procedure to compare two integers− START

Read More »


C program for matrix addition

C program for matrix addition #include <stdio.h> int main() { int a, b, c, d; int m1[10][10], m2[10][10], sum[10][10]; printf(“Please

Read More »


Program to Check a whether a Number is Odd or Even using Switch Case

Program to Check a whether a Number is Odd or Even using Switch Case #include<stdio.h> int main(){ int number,remainder; clrscr();

Read More »


C program to display odd numbers between 1 and 100

C program to display odd numbers between 1 and 100 #include<stdio.h> int main(){ int rem,i; printf(“\n The odd numbers between

Read More »


C program to display the odd digits present in integer

C program to display the odd digits present in integer Odd number can not be divided by 2. The remainder

Read More »


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