# C Programming Code Examples

## C > Strings Code Examples

### Program to Search occurrence of Character in String

Program Finds Prime Numbers in a Range -
Program should display every prime number between 'range' and at the end total number of "prime numbers" found in range. Separate function which receives "two parameters" for

Inheritance Allow Child Classes to Acquire -
A class that inherits another class is known as child class, it is also known as derived class or subclass. What is parent class? The class that is "being inherited" by other class is known as

C Language A Puzzle Finding the Number -
The main logic lies in displaying the numbers in the screen. The X & Y coordinate of each function is calculated with respect to mx "maximum of x value" & my "maximum of y

C++ Implementing B-Tree Data Structure -
This C++ Program implements The "B-Tree" data structure. B-tree is a tree data structure that keeps "data sorted" and allows searches, sequential access & insertions in logarithmic

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 Code Find Power of a Number Recursion -
C Language program code to find Power of a Number using Recursion. Power of a number is the number multiplied to itself for number of times it has been raised to Exam. 9^3=729

Add Two Matrix Multi-Dimensional Arrays -
In this program, user is asked to entered the number of rows r and columns c. The value of r and c should be less than 88 in this program. The user is asked to enter elements of two...

Checks a Character is Vowel or Consonant -
The five alphabets 'A, E, I, O and U' are called 'vowels'. All other alphabets except these five vowel letters are called consonants. Program above assumes that the user always enters an