C PROGRAMMING

  • queue using linked list

    queue using linked list A queue is a linear data structure where elements are inserted from one end and deleted…

    Read More »
  • Queue program in c using array with menu

    Queue program in c using array with menu  A queue is a linear data structure where elements are inserted from…

    Read More »
  • write a c program for stack using array

    stack using array #include<stdio.h>#include<conio.h>int limit=5;//size of stackint stack[10];int top=-1;void push(int data){if(top==limit-1)printf("nOverflow");else{top++;stack[top]=data;printf("n%d pushed into Stackn",data);}}int pop(){ int d;if(top==-1)printf("nUnderflow");else{d= stack[top];stack[top]=0;top--;return d;}}int peek(){…

    Read More »
  • infix to postfix and infix to prefix conversion

    infix to postfix and infix to prefix conversion #include<stdio.h>#include<conio.h>#include<stdlib.h>#include<string.h>struct stack{char data;struct stack *link;};struct stack *top=NULL;void push(char c){ struct stack *temp;…

    Read More »
  • Tower of Hanoi

    Tower of Hanoi   #include <stdio.h>void move(int n,char source, char target, char spare){ if (n==1) printf("Move from %c to %cn",source,target);…

    Read More »
  • linear search on array

    linear search #include<stdio.h>#include<conio.h>main(){ int array[20],size,search,loop; printf("Enter the size of arrayn"); scanf("%d",&size); printf("Enter %d elements of arrayn",size); for(loop=0;loop<size;loop++) { scanf("%d",&array[loop]); }…

    Read More »
  • binary search on array

    Binary search on array #include<stdio.h>#include<conio.h>main(){ int array[20],size,search,loop; int location,first,last,middle; printf("Enter the size of arrayn"); scanf("%d",&size); printf("Enter %d elements of array…

    Read More »
  • postfix and prefix expression evaluation

    expression evaluation postfix and prefix In this part we will create a Stack and corresponding functions for stack #include<stdio.h>#include <conio.h>#include<stdlib.h>#include<string.h>struct…

    Read More »
  • priority queue using linked list data structure

    Linked list priority queue #include<stdio.h>#include<conio.h>#include<stdlib.h>#include<string.h>struct node{int roll;char name[20];int priority;struct node *link;};struct node *front=NULL;struct node *rear=NULL;struct node *cur=NULL;// Queuee fuctions void…

    Read More »
  • Functions in C

     Functions in C C enables its programmers to break up a program into segments commonly known as functions, each of…

    Read More »
  • Variables and its types in C

    Variables and its types in C A variable is defined as a meaningful name given to a data storage location…

    Read More »
  • data types in C

    What are data types in C Data types The kind of data that the variable may hold in a programming…

    Read More »
  • Introduction to C language

    Introduction to C language A Brief History of C C was invented and first implemented by Dennis Ritchie on a…

    Read More »
  • What are programming languages

    What are programming languages  Language is a instrument of communication means it is the way through which we can communicate…

    Read More »
  • Compiler and Interpreter

    Compiler and Interpreter Compiler Is a translator program used to convert high level program into machine language. These compilers converts whole program at a time into…

    Read More »
Back to top button