# C Programming Code Examples

## C > Strings Code Examples

### program to find the length of a String without using function strlen()

C Standard Form of a Quadratic Equation -
The determinant tells the nature of the roots. b*b-4ac: Determinant of quadratic equation. If determinant is greater than 0, the roots are real and different. If determinant is equal to 0

C Find Prime Numbers Between the Range -
The program takes the range and finds all the 'Prime Numbers' between the range & prints. Lets first take the range of numbers between which you have to find the prime numbers as

Compile Ttime Polymorphism in The C++ -
In this C++ example, we have two functions with "same name" but different number of arguments. Based on how many parameters we pass during Function call "Determines"

C program to Getting the Time as a String -
Returns the time as a string in 12 or 24 hour format. Stores the time as a string. Getting time value. Getting time and date structure. Save the hour value. Adjust if 12 hour format.

C Calculates Area of an Equilatral Triangle -
An "Equilateral Triangle" has equal sides (all 3 sides are equal). In order to calculate the area of equilateral triangle, we must know the side of the triangle. This C program would prompt

Check the two Strings are Anagram or Not -
To check whether the two string are anagram or not anagram in C++, enter the 'two strings' to start checking for anagram and display the result on the Screen as shown here in sample

Replace all Occurrences of a Character in a -
Write a C program to 'Replace all Occurrence' of a character with another in a string using a Function. 'Input a string' from user, store it in some variable say str. Input old character and

Find The Perfect Number In C++ language -
For example 6 is Perfect Number since divisor of 6 are 1, 2 and 3. Sum of its divisor is 1 + 2+ 3 =6 and 28 is also a 'Perfect Number' since 1+ 2 + 4 + 7 + 14= 28. Other 'Perfect Numbers': 496