# C Programming Code Examples

## C > If Else and Switch Case Code Examples

### C program to check whether triangle is valid or not if angles are given

C++ Program to Implement Selection Sort -
This C++ program sample sort the given data using Selection Sort. Selection sort algorithm sort data by comparing one element to every other element & decide its position. The time

C++ Additions Subtractions Multiplication -
Perform addition, subtraction, multiplication and division of any two numbers in 'C++', you have to enter the 'two number' and enter the operator to perform the particular operation

Program Shows How a Pointer is Declared -
There are several other things that we can do with "pointers", we have discussed them later in this guide. Now, we just need to know how to link a pointer to the 'Address of a Variable'.

Find Quotient & Remainder with Function -
In this program, we are doing the same thing that we have done in the above program, but here we're using functions in order to find the Quotient & Remainder. We have created two

C Check Whether a number is Even or Odd -
C Program code to Check Whether a number is even or odd using if else. A number exactly divisible by 2 leaving no remainder, is known as even number. Any number modulo divided

C If Expression is Correctly Parenthesized -
C program code takes a expression as input and checks if the expression is correctly parenthesized. Take a expression as input and store it in the array. Check for the "(" ...

Find the Length of Strings without Built-in -
This program takes a string as input and finds its Length without using the built-in function. Take a string as input and store it in the array 'string[]'. Using for loop count the number of

C Programming coding Calendar example -
This is because a leap year does not strictly fall on every fourth year. If a year is divisible by 4, then it is a leap year, but if that year is divisible by 100, then it is not a leap year.