C Programming Code Examples
C > Beginners Lab Assignments Code Examples
Calendar of Thousands of Years
C++ Language Implement Multiset in STL -
C++ Program demonstrates implementation of "Multiset in STL". "Insert element" into the multiset. "Delete element" from the multiset. "Find element" in a multiset. Count elements
C Find the Length of a String by Recursion -
Program to find the length of the string using recursion. C Program uses recursive function & counts the number of nodes in a linked list. A Linked List is ordered set of data elements,
C code swap First & Last digit of a number -
C Program to input a Number from user and swap first and last digit of the given number. First input a number from user and find last digit. Total number of digit - 1. Find first digit.
Implementing the Bin Packing Algorithm -
This is a sample program to illustrate the Bin-Packing algorithm using next fit heuristics. In the bin packing problem, objects of different volumes must be packed into a finite number
C Store Information Using Structures with -
C Programming example Store information using structures with dynamically memory allocation. This c program asks user to store the value of noOfRecords and allocates the
Find the Volume and Surface Area of Cone -
This C Program to calculates the volume and surface area of cone. This program is used to find the the volume and surface area of cone. Surface_Area = Pi * r * (r + sqrt(r2 + h2)) and
C Program Reverse a String Use Recursion -
Program reverse the string 'Using Recursion'. C program uses recursive function & reverses the string in the same 'Memory Location'. Eg 'Superman8' will be reversed to '8namrepuS'
Aho-Corasick Algorithm String Matchings -
"Aho-Corasick" string matching algorithm is a 'searching algorithm', it is a kind of dictionary matching Algorithm that locates elements of a finite set of strings (the "Dictionary") within