# C Programming Code Examples

## C > Strings Code Examples

### C Program to Reverse String Without Using Library Function

C++ Program Codes Print Prime Numbers -
For example, to print prime number between '3 to 29', here 3 is the starting number and 29 is the ending number, enter the starting and ending number to find and print all the prime

Find Reverse of String by strrev() Function -
C program code find Reverse of a given string using Loop. There are numerous ways to find reverse of a string. Input the string from user, store it in a variable say "str". Declare another

Code Sum of Prime numbers between 1- n -
C program to find sum of all prime numbers between 1 to n using for loop. Prime numbers are positive integers greater than 1 that has only two divisors 1 and the number itself. For

Convert Binary Number Octal Vice-Versa -
You will learn to convert "binary number" to octal, and octal number to binary manually by creating a "user-defined" function. In this, first convert the binary number to "decimal".

Code Finding Minimum Number of Edges -
Program to find minimum number of edges to cut to make the 'graph disconnected'. An edge in an undirected connected graph is a bridge if removing it disconnects the graph.

Find Maximum Between 2 Numbers If Else -
Finding maximum in general is comparison of two numbers. In C programming we compare 2 quantities using relational operator. We can write expression to find maximum between j1

Addition Operation use Bitwise Operators -
C++ Program perform addition using bitwise operators. Using "AND" and "XOR" operators addition can be done, where carry is given by "AND" between two operands and result can

Display decimal equivalent of input binary -
C Programming language example to display decimal equivalent of a input binary number. What will be the length of input no.? Don't exceed input from your input limit or 5 digits