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. Program reads 4 values a, b, c, and d and evaluates the ratio of (a+b) to (c-d) and prints the result, if c-d is not equal to zero using if statement

  2. Program that displays use of register variable

  3. Program to take input text from a user. Also take 2 words one that need to replace and one that will be replaced from sentence

  4. Program to count number of male employee in a company using structures/file perform this job

  5. Program to show the implementation of Double Mouse Click

  6. Program that implements deque using an array

  7. Compute sum of those integers that are evenly divisible by 5. Use the conditional operator ( ? : ).

  8. RUNGE-KUTTA 4th ORDER METHOD

  9. Program to get substring of entered text or word by taking starting index and number of characters from a user

  10. Project of Student information management

  11. Program to concatenate of two strings without using strcat function

  12. PROGRAM TO FIND ANSWER OF THE FOLLOWING SERIES. INPUT STEPS FROM KEYBORD. SUM=X-X3/3!+X5/5!-X7/7!+...(TAKE VALUE OF X ALSO).

  13. Program of matrix addition using function

  14. Program to swap elements of array of pointers to strings

  15. Detection of errors in scanf input

  16. Program to find the length of a string taken from user without using strlen function

  17. Preparation of the rank list of a class of students using pointers and two dimensional arrays

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

  19. RUNGE-KUTTA METHOD

  20. Function to find the binary equivalent of a given decimal integer and display it

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