# C Programming Code Examples

## C > Code Snippets Code Examples

### identical to scanf() except that data is from buf

While Loop Statement in C Programming -
The variable count is initialized with value 1 and then it has been tested for the condition. If the condition returns true then statements inside the body of while loop are executed...

C Language Codes & Arithmetic Operators -
Arithmetic operator performs mathematical operations such as addition, subtraction and multiplication on numerical values (constants and variables). C Program to demonstrate...

Implements Max-Flow Min-Cut Theorem -
Program demonstrates implementation of max-flow_min-cut_theorem. So returns true if there is a 'path from source' 's' to sink 't' in residual graph. Also fills parent[] to store the

C code format Time and Date into a string -
Abbreviated weekday name, Full weekday name, Abbreviated month name, Full month name, Standard date and time string, Last two digits of year, Day of month as a decimal

Volumes & Areas of geometric shapes in c -
C program coding to calculate area, volume, perimeter of a particular geometric shape. Square, rectangle, circle, triangle, rhombus, parallelogram, trapezium, quadrilateral,...

Find the Type of the Triangle made by i-p -
Program to find the type of the triangle made by i-p values of its coordinates of its vertices. Enter coordinates of vertex A, B, C. Triangle made by these vertices is an equilateral...

C++ Program to Implementing LRU Cache -
A Queue Node (Queue is implemented using Doubly Linked List). And a FIFO collection of Queue Nodes. A hash (Collection of pointers to Queue Nodes). A utility function to create

Check a Number is Positive Negative or 0 -
We will use the above logic inside if to check number for Negative, Positive or Zero. Step by step Descriptive Logic to check negative, positive or zero. Input a number from user in