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 > For Loops and While Loops Code Examples

C program to convert Decimal to Octal number system





C++ Code to List Files in Current Directory - To list and "display/print" all the files present inside the current directory in The C++, use a pointer say dir of DIR and the pointer say pdir of dirent to open and "read directory" to print

Generate Perfect Numbers in given Range - C Program Code to print all Perfect Numbers between 1 to n. A Perfect number is a positive integer which is equal to the sum of its proper positive divisors. Input upper limit from user

Checking the Number is Armstrong or Not - To check whether a number is an 'Armstrong' number or not an Armstrong number in 'C++' Language, 'enter the number', now check for the Armstrong number, whether the entered

C Reversal of a Singly Linklist by recursion - Function for inserting an element into a list. Function for displaying the list. Function for reversing the list by recursion. Stores the address of the first element. Also stores the

Displays Nodes of a Linked List in Reverse - C Program uses recursive function & reverses the nodes in a linked list and displays the list. Linked list is an ordered set of data elements, each containing a link to its successor. Code

Lets Learn String Functions in C Language - Find the "Length of str1". Increment count till we reach the Terminating character. Find the "Length of str2". Check that we have enough 'space' for both strings. Copy 2. string to end

C Number of Occurrences of an Element in - Code count the Number of Occurrences of an element in the linked list using recursion. This C Program uses recursive function & finds the occurrence for an element in an unsorted list.

Count Number of non leaf nodes of a tree - C create a new node with the data from the user. Check for root node and then create it. Search for the appropriate position to insert the new node. Display and count the sum of