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 > Sorting Searching Code Examples

C Program to Implement Depth First Search Traversal using Post Order

Converts Octal Number to Binary Number - In this c program code we have created a user defined function octalToBinary(). Function converts the octal number (entered by user) to decimal number first and then converts...

Using Virtual Functions in C++ Language - See in this case the output is Woof, which is what we expect. What happens in this case? Since we marked the function animalSound() as virtual, the call to the function is resolved

C++ Language Samples Separate Chaining - Internal method to test if a positive number is prime. Not an efficient algorithm and Internal method to return a 'prime number' at least as large as n. Assumes "n > 0". Insert item x into

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

C++ Coding Find Factorial using recursion - User enters a number which stores in variable "num". Then number "passes as argument" in function call A static variable is used to check that how many times function is called. When

Merge Sort Linked list Code in C Language - Add a node to the linked list. Preform merge sort on the linked list. Merge the lists. Insert some numbers into the linked list. Sort the list. Print the list. Free the list. Add a node to

Volumes & Areas of geometric shapes in c - C program coding to calculate area, volume, perimeter of a particular geometric shape. Square, rectangle, circle, triangle, rhombus, parallelogram, trapezium, quadrilateral,...

C++ Same Namespaces in Multiple Places - In C++, namespace can be defined in different parts of the program. All the objects that are in different parts of a program, but if in same namespace will form one namespace. Better