# C Programming Code Examples

## C > Strings Code Examples

### Find the Length of the String using Recursion

Add 2 Distances System Using Structures -
A "Structure Distance" containing two data members (inch and feet) is declared to store the distance in inch-feet system. Here, two structure variables d1 and d2 are created to

Cryptography by Transposition Technique -
This "C++" Program implement transposition technique. In "Cryptography", a transposition cipher is a method of encryption by which the positions held by units of plaintext (which are

C++ language program Copy Constructor -
'Constructor' is automatically called when an object("the Instance of the Lass") create. It is special member function of the class. Object member variable values assigned to another

Program to Convert Hexadecimal to Octal -
There is not any Easy and Direct conversion algorithm from hexadecimal to octal number. Convert the Hex number to Binary. Group the converted binary in groups of 3 bits. Write the

Convert String to Lowercase using strlwr() -
C code convert uppercase string to lowercase using 'For Loop'. Internally characters in C are represented as integer value known as 'ASCII' value. Which means if we write a or any other

C programming A Power Calculator Code -
This C code will calculate the power in watts when you input the voltage and current. Get the voltage. Enter the voltage in volts. Get the current. Enter current in amps. Calculate

C Program convert Decimail nos to Roman -
Convert decimail nos to roman equivalent upto 10,000. Function for generating roman equivalent of 1000's. Function for generating roman eq of 100's. Function for generating...

Perform Unique Factorization of Numbers -
Program finds the Unique paritions of a given integer such that addition of a partition result an integer. A positive integer n, "generate" all possible unique ways to represent n as sum of