# C Programming Code Examples

## C > Strings Code Examples

### Program to count number of vowels and consonants using switch case

```
```

```
```

C Programming code Basic Hash example - Basic hash example. Fire up hashtable, insert data into hashtable, resolve collisions in hashtable, display hashtable, delete an entry from hashtable, hash data for hashtable...

C program to Dynamic Array of structures - Dynamic array of structures. Add ONE element to the array. Allocate memory for one 'struct node'. Copy the data into the new element (structure). Print the array. Free all...

Program to Check if a Binary Tree is a BST - Returns true if the given tree is a BST and its values are >= min & <= max. Allocates a new node with the data and "NULL" left and right pointers. The Given Binary Tree is a "BST" or

Implementation for Deterministic Skip list - Finding the smallest item in the tree. Return smallest item or 'INFINITY' if empty. Find the largest item in the tree. "Return the Largest" item or INFINITY if empty. Find item x in the

Program Find the Area of Scalene Triangle - First Input the length of a side of the triangle. Then Input the 'length of another side' of the triangle, then input the angle between these sides of the triangle. The area of the Scalene

Compare two Strings in the C++ language - Function will return 0, if the strings are equal; return 'negative value', if "string1 is less" than string2 and return "positive value" if string1 is greater than string2. This function 'compares'

Program Code to Implement CockTail Sort - C Program implements cocktail sort. Cocktail sort is a variation of bubble sort that is both a stable sorting algorithm & a comparison sort. The algorithm differs from a "Bubble Sort" in