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 > Beginners Lab Assignments Code Examples

Program for Binary, Octal, Hexadecimal Conversions





C++ Sorting a Given Data Using Shell Sort - Shell sort is improvement over insertion sort. It 'compares' the element separated by a gap of several positions. A data element is sorted with 'multiple' passes and with each pass gap

C Program to Find Sum of Array Elements - Read elements in an array and find the sum of all elements of the array. C code find sum of elements of the array. Add elements of an array using for loop in C programming. Logic

Represent Graphs Using Incidence Matrix - This algorithm takes the input of the number of vertex. For each pair of vertex ask whether they're connected or not. Print the incidence matrix. Function to print the incidence matrix

C Implementing Selection Sort Recursively - This C Program implements a Selection Sort. 'Selection Sort' works by finding the smallest unsorted item in the list and swapping it with the item in the current position. It is used for

C Programs Prints Prime Number Pyramid - Printing Prime Number Pyramid. To Evaluate Number is Prime or not Consecutively divide that number from 2 to n/2. To find whether 17 is 'Prime or Not' divide that number from 2 to

Returns Nonzero if ch is White-Space Char - C program Returns nonzero if ch is a white-space character, including space, horizontal tab, vertical tab, formfeed, carriage return, or newline character; otherwise zero is return.

C++ Direct Recursion vs Indirect recursion - Direct Recursion: When function calls itself, it is called "Direct recursion". Indirect recursion: When function calls "another function" & that function calls the calling function, then this is

C Programming Code N-Queen's Problem - Enter the number of queens(say n) and watch how computer places them in (n x n) matrix such that none can meet another moving along horizontally, vertically or digonally.