# C Programming Code Examples

## C > File Operations Code Examples

### C Program to Read a Line From a File and Display it

C++ Program to Find LCM of two Integers -
Examples on different ways to calculate LCM ("Lowest Common Multiple") of two integers using loops and decision making statements. "LCM of two integers" a and b is the smallest

C Standard Form of a Quadratic Equation -
The determinant tells the nature of the roots. b*b-4ac: Determinant of quadratic equation. If determinant is greater than 0, the roots are real and different. If determinant is equal to 0

Code Find the Biggest Number in an Array -
C Program to find the biggest number in an array of numbers using recursion. Program prints the largest number in an unsorted array of elements using recursion. Array is...

C Implement Priority Queue to Add Delete -
Add the elements into the queue according to the order (ascending descending). Delete the elements. Function to create an empty priority queue. Function to insert value into

C Performing Comb Sort Array of Integers -
C Program to performs Comb sort on array of integers. "Comb Sort" is a comparison sorting algorithm. This sort is 'Exchange sort', similar to 'Bubble Sort'. Function to find the new gap

Program Finds the Peak Element of Arrays -
Implement the binary search to find a peak in the array. If the 'middle element' is more than its both Neighbors, 'it is the Peak'. Otherwise, split the array and check the same. A function

Enters Student Marks and Find Percentage -
Write a C program code to input marks of five subjects Computer, Chemistry, Mathematics, Biology, Physics & Calculate Percentage and grade according to given conditions. Student

C++ Program to Implement LeftList Heap -
In this, Merge rhs into the priority queue. rhs becomes empty. rhs must be different from this and Internal method to merge two roots. Deals with "deviant cases" and calls recursive