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


Page 1 Page 2



Find the Nearest Common Ancestor in The
C Program prints all the elements of Nth level in single line. Structure of binary tree node. Add node to binary tree. Height of the binary tree. Finds the nearest common ancestor. If

C++ Coding Repeatedly Search Same Text
C++ program performs Naive string matching without using any specific library functions. A text and a pattern is given as input. Pattern is 'searched' for in the text and all "instances" of

Display the Nodes of Linked list in Reverse
Program to display the nodes of a Linked List in Reverse without using Recursion. Program, using iteration, Displays Linked list in reverse. Linked list is an ordered set of data elements,

C++ Tictactoe Game Artificial Intelligence
Tictactoe playing artificial intelligence. None has defeated this computer ' A.I. ' . The game is very flexible. Either the user or the 'A.I.' can start the game. User is free to select his own

Find the Length of the String by Recursion
C Program uses recursive function and counts the number of nodes in a Linked List. A linked list is an 'Ordered Set' of data elements, each 'containing a link' to its successor. Recursive C

Strrchr searches the string in reverse order
'StrrChr' is similar to the function 'StrChr', the only difference is that it searches the string in "Reverse Order", would have understood why we have extra r in 'strrchr', yes you guessed it

Switch Statement Calculates Grade Points
A simple c++ program which shows using of switch statement in c++. C++ Program which takes input a grade and display Grade Points Average GPA. Program takes inputs A,a, B,b,

C++ Check a Character is Alphabet or Not
To check whether the entered character is an alphabet or not alphabet in the 'C++', enter a character and start checking for alphabet. To check for alphabet, use 'ASCII' of character, if