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

C program to check Identity matrix





C Performs Quick Sort on A Set of Entries - C program to using recursion, performs quick sort. A 'Quick Sort' is a sorting algorithm with 'complexity of O(nlogn)'. It is used for sorting Numbers, Structure, Files. Enter the number

Most Significant Bit (MSB) of a number is - In C programming language we use bitwise AND & operator to check status of any bit. Bitwise AND operation evaluate each bit of resultant value as 1, if corresponding bit of...

Program Finds Sum of First and Last Digit - C Language Program to input a number and find sum of first and last digit of the number using for loop. Input a number. Find last digit. Find total number of digits - 1. Find first digit.

C How to Access the Address of a Variable - In this program code, we have a variable j of int type. The value of j is 10 and this value must be stored somewhere in the memory, right? A memory space is allocated for each

Find the Trace & Normal of a given Matrix - C Program find the trace & normal of a given matrix. Trace of the matrix is the sum of the elements of the main diagonal i.e diagonal from the upper left to the lower right of a...

Code Count number of digits in an integer - C language program to input a number from user and count number of digits in the given integer using loop. First logic is the easiest and is the common to think. It uses loop to

Computes DFT Discrete Fourier Transform - C++ Program to compute the 'coefficients' of the DFT (Discrete Fourier Transform) directly. In math, the discrete Fourier transform (DFT) converts finite list of equally spaced samples

Binary Search Algorithm in C++ Language - A program which takes some 'Elements' in an array and a 'Key' in variable then program use 'Binary Search' C++ Algorithm to find the key. One to sort array using 'Bubble Sort'. Second