# C Programming Code Examples

## C > Code Snippets Code Examples

### specifies the buffer that stream will use

```
```

```
```

C Programming codings Else..If Statement - C Language The else..if statement is useful when you need to check multiple conditions within the program, nesting of if-else blocks can be avoided using else..if statement. else

C Power of a Number using Pow Function - C Programming Code to input two numbers from user and find their power using pow() function. How to find power of a number in c. How to use pow() function in C programming.

Finds HCF/GCD Using For Loop Statement - The largest integer which can perfectly divide 2 integers is known as GCD or HCF of those 2 numbers. The logic of this program is simple. In this, small integer between "number1" and

Increment Operator Decrement Operator - Basic "arithmetic operators" are +, -, *, /, %. "Increment operator" is ++ and "decrement operator" is --. These operators can be used as before the variable (prefix) and after the

Coordinated Universal Time in C Language - C program code returns time in Coordinated Universal Time (UTC) (essentially Greenwich mean time). Printing the local time and date. Printing coordinated Universal Time and date

Code Checks Valid Triangle with Nested If - Despite of easiness, the above code is messy and less readable. printf("The Triangle is not valid."); statement is unnecessarily repeated for various conditions. You can cut the extra

Transitive Closure by Warshall's algorithm - Finding the transitive closure using Warshall's Algorithm. The Transitive Closure of a binary relation R on a set X is the 'transitive relation' R+ on set X such that R+ contains R and R+ is