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
 
 
   main()                                                           
   {                                                                
       struct  marks                                                
       {                                                            
           int  sub[3];                                             
           int  total;                                              
       };                                                           
       struct marks student[3] =                             
       {45,67,81,0,75,53,69,0,57,36,71,0};                   
       struct marks total;                                   
       int  i,j;                                                    

       for(i = 0; i <= 2; i++)                                      
       {                                                            
          for(j = 0; j <= 2; j++)                                   
          {                                                         
             student[i].total += student[i].sub[j];                 
             total.sub[j] += student[i].sub[j];                     
          }                                                         
          total.total += student[i].total;                          
       }                                                            
       printf(\"STUDENT         TOTAL\\n\\n\");                         
       for(i = 0; i <= 2; i++)                                      
          printf(\"Student[%d]      %d\\n\", i+1, student[i].total);  

       printf(\"\\nSUBJECT         TOTAL\\n\\n\");                       
       for(j = 0; j <= 2; j++)                                      
          printf(\"Subject-%d        %d\\n\", j+1, total.sub[j]);      

       printf(\"\\nGrand Total  =   %d\\n\", total.total);              

   }                                                                
                                                                    Output                                                           

   STUDENT         TOTAL                                            
   Student[1]       193                                             
   Student[2]       197                                             
   Student[3]       164                                             

   SUBJECT         TOTAL                                            
   Subject-1        177                                             
   Subject-2        156                                             
   Subject-3        221                                             

   Grand Total  =   554                                             

    Related Post:
  1. WRITE A PROGRAM ENTERED THROUGH THE KEYBOARD FOR KILO METERS AND METERS

  2. Program to do sum of the elements of the array by loop splitting and each process adds its partial sum to the final sum

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

  4. FUNCTION TABULATED AT UNEQUAL INTERVAL

  5. Program to multiply matrix (10 x 10) with a vector using Indirect Scheduling

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

  7. Program to writes numbers in a file and read and find odd or even numbers from it

  8. Vehicle parking program

  9. PROGRAM TO FIND VOLUME OF A CYLINDER

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

  11. Doubly circular link list or Circular doubly link list

  12. Program to count number of student in 80 to 100, 60 to 80 and so on.range

  13. Program to show the Basic Mouse Handling in Text Mode

  14. Program to concatenate one linked list at end of another and than to erase all nodes present in the linked list

  15. Program to copy one linked list into another using recursion

  16. Example of using preprocessor in different files

  17. Program to find the total no of prime numbers between 1 to n by using thread

  18. 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

  19. Program to get answer of inventor of c. Allow user to give answer in 3 attempts

  20. Program that counts number of line, number of words and number characters in specified string

 
 
Didn't find what you were looking for? Find more on Use of subscripted members in structures , ARRAYS WITHIN A STRUCTURE