# C Programming Code Examples

## C > If Else and Switch Case Code Examples

### C program to check vowel or consonant

Program Code Converts Decimal to Binary -
How to convert from decimal number system to binary number system in C programming. C program to convert from Decimal to Binary number system. Input decimal number from

Calculate Display the Grade of the Student -
To calculate "grade of a student" on the basis of his total marks in C++ Programming, ask to the user to enter marks obtained in some subjects (5 subjects here). To calculate grade

Program print Strong Numbers in a Range -
Strong number is special number whose sum of Factorial of Digits is equal to the original number. For example: 145 is strong number. Since, 1! + 4! + 5! = 145 Logic to print Strong

Find Intersection & Union of 2 Linked Lists -
This C Program code finds the intersection & union of 2 Linked lists. Intersection is a set of elements that are common in both lists while union is a set of all Unique Elements in both...

C++ Language Implementations For Stack -
Test if the stack is logically full. Return true if full, false otherwise. Get the "most recently" inserted item in the stack. Does not alter the stack. Return the most recently inserted item

C++ Apply the Kruskal's Algorithm to find -
'C++ Program' to find the minimum spanning tree of the given graph. Kruskal's algorithm is a greedy algorithm in graph theory that finds a "Minimum Spanning Tree" for a connected

Swap Array Element and Reverse an Array -
To reverse an array in C++ programming, you have to ask to the user to enter the array size and array elements. Now start swapping the array elements. Make a variable say temp of

Program Computes the Area of a Triangle -
C++ Language code to compute the area of a triangle using determinants. The 'plus/minus' in this case is meant to take whichever sign is needed so the 'answer is positive'. Do not say