C Programming Tutorial

 
 
 

Advanced Programming

Array

One dimensional array Two dimensional Array Two dimensional array pointers Array of pointers Print array Print Array - for loop Print array in reverse Print address array - for loop Multidimentional array - function Print address array - pointers Print reverse string of array Print array ascii value-without atoi Character array - upper case Multiplication table - 2D array Passing array to function Max or greatest value in array Merge sorted array Array of structure Array of pointers to string Array within a structure

String Programs

Copy string Substring of string String concatination Vowel in string Swap char in string Palindrome string Rotate string Bubble sort of strings Sorting of words Encode decode string Compress string

File Programs

Read write in 2 files Add,edit,delete,search in file Add,search using structure Append in file Merge file Count word,line,char in file Count record - struct fread() example fwrite() example fopen() example fclose() example fscanf() and fprintf() fseek() example Error handling in file op Find odd,even num Odd even numbers in file Max, min age in class Random numbers file Preprocessor in 2 files Encode decode in file

Bios Programming

biosequip( ) - sys confi biosdisk( ) - partition tbl info Pc type-bios data area File allocation table Telephone directory

TSR Programming

Interchange letters Interchange letters on screen Unload TSR on key press-keyboard Unload TSR - timer interrupt Activate, deactivate TSR Print alphabet from printer Repeat key press Keep caps on Make ctrl, alt key pressed

Interrupt Programming

Restart computer Conventional memory of sys Save IVT in file Print string-interrupt 21h Read char-interrupt 21h Read char with echo-interrupt 21h Delete file-interrupt 21h Delete directory-interrupt 21h Get set system date Show system configuration Search, delete file in dir Display multiple file in dir

Mouse Programming

Text mode mouse handling Graphics mode mouse handling Double click of mouse
 
 
//file1.h
#define USD 1

//file2.h
#define UKP 1

//file3
#include <stdio.h>
#include <file1.h>               //A

#if (defined (USD))               // B 
         #define currency_rate 46
#else
        #define currency_rate 100          //C
#endif                        //D

 main()
{        
    int rs;
    rs = 10 * currency_rate;      //H
    printf (“%d\\n”, rs);
}

    Related Post:
  1. NEWTONS BACKWARD DIFFERENCE METHOD

  2. PROGRAM FOR MATRIX VECTOR MULTIPLICATION USING INNER LOOP SPLITING FOR N NO.OF PROCESSES

  3. Program to compare two linked lists using recursion

  4. Program to create user defined fork function and create 2 child process, print their process ids

  5. Write a function to perform string operation i.e. split, join, length, substring using pointer without using any string function

  6. PROGRAM TO PRINT THE SUM OF SERIES 1 + 1/2 + 1/3 + 1/4 + ... + 1/N.

  7. PROGRAM TO FIND THE FACTORS OF GIVEN NUMBER PARALLELY

  8. Program to display reverse triangle of characters

  9. Implement a multi-access threaded queue with multiple threads inserting and multiple threads extracting from the queue

  10. Program to compute total minutes from given hours and minutes

  11. Program that implements circular queue as an array

  12. PROGRAM TO COMPUTE n! USING SELF-SCHEDULING

  13. Program to find first occurrence of a character in a string and also position in string using strchr function from string.h

  14. Program of histogram using loop splitting and locking the each bin with a different lock

  15. Program to compare one string s2 to another string s1. Print the difference of first unmatched characters (Without Using strcmp function)

  16. A car garage simulation using de-queue (link list implementation)

  17. Program to find vowel Occurances from a given string

  18. PROGRAM TO PRINT ALL THE PERFECT NUMBERS BETWEEN 1 AND 2000

  19. Program to display inputted string in ascending triangle and descending triangle

  20. Example of passing structure to function

 
 
Didn't find what you were looking for? Find more on Example of using preprocessor - 2 in different files