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
 
 

Image

 # include <stdio.h>
 # include <conio.h>
 # include   <dos.h>


 const char Getch( );


 int main( )
 {
    int key=0;

    clrscr( );

    printf(\" Press ANY key : \");

    key=Getch( );

    printf(\"\\n\\n ASCII Code for Input Key = %d\",key);

    getch( );
    return 0;
 }


 //--------------------------------  Getch( )  ---------------------------//


 const char Getch( )
 {
    union REGS InReg;
    union REGS OutReg;

    InReg.h.ah=0x8;

    int86(0x21,&InReg,&OutReg);

    return OutReg.h.al;
 }

    Related Post:
  1. Program that will accept a line of text from the text file; count the number of words, lines, and characters in the file

  2. PROGRAM TO FIND (X + Y) / (X - Y) , (X + Y) / 2 and (X + Y) * (X - Y)

  3. Program to encode and decode given string

  4. Program to add 2 numbers

  5. Program to display series 2,4,16,256... using while loop

  6. PROGRAM TO APPLY BLOCK SCHEDULING TECHNIQUE TO SOLVE FOLLOWING EXPRESSION X[I] = X[I+1] + Y[I]

  7. PROGRAM USNG WHILE LOOP TO REVERSE THE DIGITS OF THE NUMBER NO IS - 12345 ANSWER IS 54321

  8. Program to generate triangle

  9. Program to compute sum of those integers that are evenly divisible by 5. Use the conditional operator ( ? : )

  10. PROGRAM TO READ NUMBERS, N1 AND N2 ARE INTERCHANGE WITHOUT USING EXTRA VARIABLES.N1=10, N2=20 THEN O/P IS N1=20, N2=10 USING MULTIPLICATION, DIVISION

  11. Program to display array values using for loop

  12. Program to create processes using fork() and check different states for orphan process

  13. Program that takes a string from user and prints the total number of vowels i.e. (a,e,i,o,u) present in the string.

  14. Program that takes a number from user and calculates its logarithm value to the base 10 and e, exponentiation, sin value, cosine value and square root

  15. Program that will round a floating-point number to an indicated decimal place no. 17.457 would yield the value 17.46 when it is rounded off to 2 de

  16. Using structure as a function parameter

  17. Example - 2 of illustrating block of statement

  18. PROGRAM FOR ZOMBIE PROCESS

  19. Program that demonstrate the use of bitwise and, or, xor, ones compliment, left shift and right shift

  20. Doublely link list with create, insert, delete and display operations using structure pointer

 
 
Didn't find what you were looking for? Find more on Program to read a character from KeyBoard using Interrupt 21h