C Programs

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