# C Programming Code Examples

## C > Beginners Lab Assignments Code Examples

### C Program to Find the Size of a Union

```
```

```
```

C++ Codes Perform Dictionary Operations - This is a C++ Program to perform "dictionary" operations in binary search tree. In computer science, a binary search tree, sometimes also called an ordered or "sorted binary tree", is a

Find the Odd Element given an Array with - Will hold XOR of two odd occurring elements. Xor will basically be xor of two odd occurring elements. Get one set rightmost bit in the xor2. Now divide elements in two sets. XOR

Checks Character is Uppercase Lowercase - C program code to input character from user and check whether character is Uppercase or Lowercase alphabet using If Else Statement. Input a character from user. Store it in some

Triangle is Equilateral, Scalene or Isosceles - C program input sides of a triangle and check whether a Triangle is Equilateral, Scalene or Isosceles triangle using if else. Triangle is said Equilateral Triangle, if all its sides are equal. If

C Program to Simulate a Simple Calculator - This C Program simulates a simple calculator. Program performs arithmatic operations like addtion, subraction, multiplication & division. Assume that the two numbers a&b are given.

Find the Nearest Common Ancestor in The - C Program prints all the elements of Nth level in single line. Structure of binary tree node. Add node to binary tree. Height of the binary tree. Finds the nearest common ancestor. If

Reference Operator Dereference Operator - The pointer is a C++ programming data type whose value refers directly to (or "points to") another value stored elsewhere in computer memory using its address. Pointer examples