# C Programming Code Examples

## C > Beginners Lab Assignments Code Examples

### Program to Store Information of Students Using Structure

C Language Reading Writing Binary Files -
File I/O for Binary files in C. Pointers for both binary files. Open for binary2.exe file in rb mode. Test logic for successful open. Open file binary2.exe in "wb" mode for writing and

C analyze Comma-Separated list of words -
This, is, a, test to analyze comma-separated list. Skip over spaces and commas. Copy characters that are not space, comma or \0 as part of a word. Append terminator and The

Implement Prims algorithm using greedy -
C Program code implement prims algorithm using greedy method. For first smallest edge. We have fist smallest edge in graph. We have to find min dis of each vertex from either...

C++ Code Matrix Multiplication 2D Arrays -
Matrix addition is the "operation of adding" 2 matrices by adding the corresponding entries together. 2 dimensional array, represented in the form of "rows and columns", also suitable

Finds Path Between Two Nodes in a Graph -
A C++ Program to "check and find" if the path between two nodes exists. By running "DFS" on given graph we can find out whether path exists between two nodes. Class represents a

C Perform Matrix Multiplication Recursion -
C program, 'using recursion', performs Matrix multiplication of 2 'matrices' and displays the result. We use 2 D array to represent a matrix & resulting matrix is stored in different matrix

Computing The Volume of A Tetrahedron -
Program to finds the volume of tetrahedron. Call the four vertices of the tetrahedron (a, b, c), (d, e, f), (g, h, i), and (p, q, r). Now create a 4-by-4 matrix in which the coordinate triples

The C++ Implementation for Binary Heap -
Capacity is the capacity of the "binary heap". Duplicates are allowed. "Throw Overflow" if container is full. Find the smallest item in the "priority queue". Return the smallest item, or