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 > Strings Code Examples

C Program To Count the Occurence of a Substring in String





C++ Programming Code for Selection Sort - Here, we use 'swapping' of the elements with the help of a Variable say temp of same type. That is, on found, start 'Swapping' with temp variable, place the first number in the temp &

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

C++ Program Implements Fibonacci Heap - Link nodes in fibonnaci heap. Union nodes in fibonnaci heap. Extract min node in fibonnaci heap. Consolidate node in fibonnaci heap and Decrease key of nodes in fibonnaci heap. Find

C++ Programming Code Swap two Strings - To swap two string in C++, enter the 2 strings, and store both the 'string' in variables say str1 & str2. To swap 2 strings, first make a variable say temp of the same type. 'Place the string1'

C Language Print Natural Numbers 1 to N - C program print all natural numbers from 1 to n using loop. Input upper limit to print natural number from user. Store it in a variable say N. Run a For Loop from 1 to N with 1 increment.

Programs to Traverse the Tree Recursively - C Coding, using recursion, performs traversal operation across the nodes in a tree. The tree we have used is the "Binary Search Tree". The user "Generates a Tree" by inserting integers.

Convert Octal to Decimal Number System - Program to input Octal number and convert to Decimal number. Octal number system is a base 8 number system. Octal number system uses 8 symbols to represent all its numbers...

Remove Spaces from Strings or Sentences - To remove or delete spaces from the string or sentence, enter a 'string'. Then start checking for spaces. If 'Space will be Found', then start 'Placing the next character' from the space to