C Programming Code Examples
C > Beginners Lab Assignments Code Examples
Calender Program in C
String Search Algorithm & Short text sizes -
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 a text and all 'instances' of the
Class with constructor ( for bank account ) -
Member functions of bank class. Enter the Name of the depositor, Enter the Account Number, Enter the Account Type, Enter the Amount to Deposit, Enter the amount to...
C Read a Grade and Display the Equivalent -
C language program take the letter as input and store it in the variable grade. Convert the input letter into its uppercase using function toupper(). Using switch statement, verify the
C Language & CPU Scheduling Algorithm -
C Program Checks if the mouse pointer is over the button. Checks whether count=1 so as to display the button on the new position for only once. Creates a box and the box is...
C++ Program Merge Sort using Linked list -
Split the Data into two equal half until we get at most one element in both half. Merge Both into one making sure the resulting 'Sequence' is sorted. Then 'recursively' split them, merge
C++ Basic Operation Addition Subtraction -
"Addition(+)" of 2 vectors. "Subtraction(-)" of 2 vectors. "Multiplication" of vector with the scalar. "Cross" product of 2 vectors. Scalar(or dot) product of 2 vectors. Negative of vectors
Code Finds the Median of 2 Sorted Arrays -
Algorithm finds the median of 2 sorted arrays using binary search approach. Takes the input of 'n' Data Elements of both the arrays. Using decrease, conquer method find the combined
C++ Coding Topological Sorting in Graphs -
Using an adjacency matrix, displays the times at which the 'different times' at which nodes are visited and left thereby producing a linear ordering of vertices in a graph. And A graph is