 # C++ Programming Code Examples

## C++ > Sorting Searching Code Examples

### Search Sorted Sequence Using Divide and Conquer with the Aid of Fibonacci Numbers

C Language Find Frequency of Characters - In C Coding, the string entered by the user is stored in variable str. Then, the user is asked to enter the character whose frequency is to be found. This is stored in variable ch. Now,

C Convert Binary to Hexadecimal Number - C Program to input binary number from user and convert to hexadecimal number system. Binary Number System is a base 2 number system. Binary number system use only two

We shall Determine & Print if the value is - This Code is very simple and a good example of using conditional statement (if-else) in an iteration (i.e. for loop). We shall initiate a for loop having some finite iterations and check

C++ Program Finds the Transitive Closure - C++ Program to find the trnasitive closure of a given graph. In mathematics, the transitive closure of a binary relation R on a set X is the "transitive relation" R+ on set X such that R+

Program Code Converts Decimal to Binary - How to convert from decimal number system to binary number system in C programming. C program to convert from Decimal to Binary number system. Input decimal number from

C Program Code Counts Number of Digits - C Program to count number of digits without using loop. The second logic uses logarithms to count number of digits in a given integer. Total number of digit in an integer is equal to

C Program Converts Strings to LowerCase - Program code to 'convert' uppercase string to lowercase using for loop. First check whether the given character is 'uppercase' alphabet or not. If it is Uppercase Alphabet just add 32 to

Check Alphabet Digit or Special Character - Checking Alphabet, Digit or Special character using ASCII value. A character is alphabet if it in between a-z or A-Z. A character is digit if it is in between 0-9. And A character is special