C Data Structure

Selection sort is more efficient than bubble sort and the insertion sort.

/* www.troubleshootyourself.com C program to sort an Array in Descending order using Bubble Sort */ #include #define MAX ...

/* www.troubleshootyourself.com C program to sort an Array in Ascending order using Bubble Sort */ #include #define MAX 100 ...

/* www.troubleshootyourself.com Program to reverse String using Stack */#include #include/* Set maximum number of ...

/* www.troubleshootyourself.com C Program to demonstrate stack implementation using structures. */#include #define MAX 100 ...

/* www.troubleshootyourself.com C Program to demonstrate stack implementation using array */#include #include #define ...

Show next

Reverse string using Stack

/* www.troubleshootyourself.com Program to reverse String using Stack */#include #include/* Set maximum number of charecters */ #define MAX 100/* Stack variables */ int top=-1; int item;/* String array variable to store string char*/ char ...

READ MORE +
Stack implementation using Structures in C

/* www.troubleshootyourself.com C Program to demonstrate stack implementation using structures. */#include #define MAX 100 /* structure declaration */ typedef struct { int element; int TOP; }STACK; STACK *s; /* Function to insert an item ...

READ MORE +
Implement Stack using array in C

/* www.troubleshootyourself.com C Program to demonstrate stack implementation using array */#include #include #define MAX 10 int STACK,TOP; /* display stack element*/ void display(int ); /* push (insert) item into stack*/ void Push(int ,int); ...

READ MORE +
www.troubleshootyourself.com
Logo