C Programming Code Examples
C > Beginners Lab Assignments Code Examples
atexit: causes the function pointed to by func to be called upon normal program termination
Binary Counting Method Generate Subset -
Algorithm takes the input of "n" data element and 'prints all possible combination'. Function to 'Print array element' according to the code in the 'Argument List'. For that, it generates n
C Program Check If a String is Palindrome -
Check if string is a 'Palindrome' without using the "Built-In function". "Take a string" as input & store it in the array 'string[]'. Then store the same string into the another array 'reverse_s'
Code to find the Frequency of Odd & Even -
Program code finds frequency of odd & even numbers in the given matrix. The program first accepts the matrix. Then finds the odd and even numbers in a matrix. Then finds the
C Find the Areas of Different Geometrical -
C Program code finds the Areas of different Geometrical Figures. The program is menu driven program. This has 4 options that can be choosen by the user. Area of Circle, Area
C++ Programs For Inorder Tree Traversal -
C++ program, without recursion, displays the nodes of a "Particular Binary Tree" in inorder fashion without using recursive traversal. So Enter value of root node. Enter value of node
Calculate Sum of Array in C Programming -
C language programming code to calculate sum of array. This program should give an insight of how to parse (read) array. We shall use a loop and sum up all values of the array.
C program to Getting the Time as a String -
Returns the time as a string in 12 or 24 hour format. Stores the time as a string. Getting time value. Getting time and date structure. Save the hour value. Adjust if 12 hour format.
C Code Rotate left rotate an Array n times -
C program code to left rotate an array by n position. Logic to rotate an array to left by n position in C program. Read elements in an array say arr. Read number of times to rotate