Happy Codings - Programming Code Examples
Html Css Web Design Sample Codes CPlusPlus Programming Sample Codes JavaScript Programming Sample Codes C Programming Sample Codes CSharp Programming Sample Codes Java Programming Sample Codes Php Programming Sample Codes Visual Basic Programming Sample Codes


C Programming Code Examples

C > Bitwise Operators Code Examples

C Program to Check if a given Bit Position is set to One or not





Inputs Few Numbers Performs Merge Sort - Input few numbers & perform 'Merge Sort' on them using recursion. C program to performs merge sort. Merge sort is a sorting algorithm with complexity of O(nlogn) and It is used for

C Delete all Duplicate Elements from array - Delete all duplicate elements from an array. C program code to remove all duplicate integer values from an array. After performing delete operation array should only contain unique...

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

BoyerMoore & Algorithm String Matching - Whenever the 'character' does not match, we slide the pattern in such a way that aligns the bad character with the last occurrence of it in pattern. We preprocess the pattern and store

Code find power of number using for loop - C program to find power of a number using for loop. Input base and exponents from user. Store it in two variables say base and expo. Declare & initialize another variable to store

C Program Codes Parse Custom httpd Log - C Parse custom httpd log. Get unresponsibly wild with pointers. Grow a tree for world peace. Allocate mem for ptr array. Read btree into array. Qsort the array. Print the result.

C++ Language Passing Arrays to Function - In this C++ Code, we are passing 2 arrays a & b to the "function sum()". Function adds the "corresponding elements" of both the arrays and display them. This c++ function adds the

C Finds Maximum Between Two Numbers - Finding maximum in general is comparison of two numbers. In C language we compare two quantities using relational operator. We using either > or < operator to compare 2 numbers