C Programming Tutorial

 
 
 
 
#include<conio.h>
#include<stdio.h>
#inclcde<stdlib.h>

struct queue
{
    int i;
    struct queue *back;
};



void cre(void);
void disp(void);
void ins(void);
void del(void);

struct queue front*;
struct queue rear*;
struct queue t*;

void main()
{

    int user;
    clrscr();
    printf(\"\\n\\t 1.CREATE.\");
    printf(\"\\n\\t 2.INSERT.\");
    printf(\"\\n\\t 3.DELETE.\");
    printf(\"\\n\\t 4.DISPLAY.\");
    printf(\"\\n\\t 5.EXIT.\");
    scanf(\"%d\",&user);
    while(user!=5)
    {
        if(user==1)
        {
            cre();
        }
        if(user==2)
        {
            ins();
        }
        if(user==3)
        {
//            del();
        }
        if(user==4)
        {
            disp();
        }
        if(user==5)
        {
            break;
        }
        getch();
    }
    getch();
}

void cre(void)
{
    int i;
    front=(struct queue
    printf(\"\\n\\t ENTER DATA::::\");
    scanf(\"%d\",&front->i);


}

    Related Post:
  1. Compute the yearly depreciation of the value of an item is given by DEPREATION = (PURCHASE VALUE - SALVAGE VALUE) / YEAR OF SERVICE

  2. Program to multiply matrix (10 x 10) with a vector using variation in Loop Splitting using multiple barriers

  3. Program using do-while loop that will calculate the sum of every third integer beginning with i=2 sum = 2+5+8+11+.)for values less than 100

  4. Program to alphabetize a customer list

  5. PROGRAM TO READ THE PRICE OF AN ITEM IN DECIMAL FORM LIKE (10) AND PRINT THE OUTPUT IN PAISE LIKE(1000)

  6. Singly Linked list

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

  8. PROGRAM TO CALCULATE BONUS, COMMISSION AND GROSS SALARY OF A SALESMAN

  9. Program to append one string s2 to another string s1 i.e. concatenation of two strings. (Use strcat function from string.h)

  10. Program to copy one string s2 to another string s1. (Use strcopy function from string.h)

  11. Program of 2-thread for Linux Using the POSIX threads library. Once the thread spawning is done, the first thread should wait for user input

  12. Recursive program for following operations fibonacci series

  13. PROGRAM TO READ THE PRICE OF AN ITEM IN DECIMAL FORM LIKE (10) AND PRINT THE OUTPUT IN PAISE LIKE(1000)

  14. TRAPEZOIDAL RULE

  15. Program to copy elements of one array to another for n number of processes

  16. MILNES METHOD

  17. Program of FITTING A POLYNOMIAL

  18. Program of hanoi tower

  19. Sorting of array elements using a function

  20. LAGRANGES INTERPOLATION METHOD FOR FINDING f(X)

 
 
Didn't find what you were looking for? Find more on simple queue with link list