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 > Arrays and Matrices Code Examples

Program to Sort N Numbers in Ascending Order using Bubble Sort

Returning a Reference to a Pointer In C++ - To declare such a function, precede its name with * and &. In the body of the function, you can do whatever is appropriate. An important rule with this type of "function" is that it must

Code to find the Frequency of Odd & Even - Program code finds frequency of odd & even numbers in the given matrix. The program first accepts the matrix. Then finds the odd and even numbers in a matrix. Then finds the

Counts Leading Zeros in a Binary Number - Find total leading zeros of a given number (in binary representation) using bitwise operator in C programming. Write a C program code to input any number from user and find total

Checking the Number is a Perfect Number - Program input a number and check whether the number is Perfect number or not. Perfect number is a positive integer which is equal to the sum of its proper positive divisors. So 6 is

Top Down Triangle Printing in C Language - C Program code to print 'Top Down Triangle'. A triangle with one of its 'angle 90 degrees' is called right triangle. We shall now see how to print stars, in right triangle shape, but upside

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

Calculates Sum of Odd and Even Numbers - C program code find the sum of odd and even numbers from 1 to N. Take Number N upto which we have to find the sum as input. Using for loop take the elements one by one from 1

Comparing two strings code in C language - C program code lexicographically compares two strings. Returns an integer based on the outcome. String1 is less than string2, string1 is equal to string2, string1 is greater than...