# C Programming Code Examples

## C > If Else and Switch Case Code Examples

### check even or odd number using switch case

Check Alphabets by Conditional Operator -
C program code input a character and check whether the character is alphabet or not using Conditional/Ternary operator ?:. How to check alphabets by conditional operator...

This is a Tictactoe Game in C++ Language -
It isn't too smart to prevent you from winning but it is worth playing it. "opening headerfile" iostream for in-out. Opening headerfile conio for clrscr(); Opening headerfile stdlib for. And

Implement a Binary Search Tree by Linked -
This C++ program, displays the traversal of a "binary search tree" in inorder,postorder and preorder mode using "Linked Lists". A linked list is an ordered set of 'data elements', each

Function to Return a String representation -
C Convert an integer to a string. Caller must allocate string array. Function returns string to allow. Use of the function in an expression. Generate digit characters in reverse order...

Implementations for AA-Tree in The C++ -
Internal method to insert into a subtree. x is the item to insert. t is the node that roots the tree. Set the "New Root". Internal method to remove from subtree. x: the item to remove.

C++ Code Find Smallest Element in Arrays -
Enter the array size and array elements, now start finding for the "smallest element" in the array to display the smallest element of the array as shown here in C++ sample program.

C Sum of Row & Column of a MxN Matrix -
C Program finds the sum of each row & each column of a MxN matrix. The c program code accepts an MxN matrix. Then adds each row of the matrix and also adds each column of...

Count Occurrence Positive Zero Negative -
We have to enter some set of numbers. Now to find occurrence of positive, negative, zero from the given set of numbers, just check all the numbers using for loop whether number