Programming

/* www.troubleshootyourself.com C program to reverse an array elements. */ #includeint main() { int i, d, n, a, b; ...

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

In this article I would like to provide few tips related to memory management when we use C libraries malloc(), calloc() and free() ...

Show next

C Program to reverse an array elements

/* www.troubleshootyourself.com C program to reverse an array elements. */ #includeint main() { int i, d, n, a, b; printf("\nEnter the number of array elements:"); scanf("%d", &n); printf("\nEnter the elements\n", n); for(i = 0; i ...

READ MORE +
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 +
Memory Management in C

In this article I would like to provide few tips related to memory management when we use C libraries malloc(), calloc() and free() functions.Whenever possible, try to use static buffers where compiler automatically frees such memory. Make sure that, previously allocated ...

READ MORE +
www.troubleshootyourself.com
Logo