# C Programming Code Examples

## C > Sorting Searching Code Examples

### Program for Depth First Binary Tree Search without using Recursion

Access Elements of an Array Using Pointer -
Program Declares the array of five element & the elements of that array are accessed using pointer. The five elements are entered by the user and stored in the integer array data. And

Program to Display Odd numbers without -
C Program to print odd numbers from 1 to n without if statement. The above approach is not optimal approach to print odd numbers. Observe the above program for a while. You

C Language Finding the Sum of A.P Series -
Program calculates the the sum of A.P series. This C program is used to find the sum of the "Arithmetic Progression Series" and Here A.P stands for Arithmetic Progression. Sequence

C How to Access the Address of a Variable -
In this program code, we have a variable j of int type. The value of j is 10 and this value must be stored somewhere in the memory, right? A memory space is allocated for each

C++ Implementing B-Tree Data Structure -
This C++ Program implements The "B-Tree" data structure. B-tree is a tree data structure that keeps "data sorted" and allows searches, sequential access & insertions in logarithmic

Construct an Expression Tree For a Given -
Program, using recursion, evaluates a Prefix Expression in an "Expression Tree". A binary expression tree is a specific application of a 'binary tree' to evaluate certain expressions.

Checks Leap Year by Conditional Operator -
C Programming Language input a year and check whether year is leap year or not using conditional/ternary operator ?:. How to check leap year using conditional operator in C. If a

C Program Code Concatenates two Strings -
You can 'concatenate two strings' easily using standard library function strcat() but, in this C program 'concatenates two strings' manually without using 'strcat()' function. Calculate the