# Visual Basic Programming Code Examples

## Visual Basic > Applications VBA Code Examples

### Querying the interface of an object in a typelib (COM object)

Implement Randomized Binary search tree -
Program demonstrates the implementation of Randomized Binary Search Tree. Function to check if tree is empty. And then make the tree logically empty. Functions to insert data.

C Program to Find Sum of Array Elements -
Read elements in an array and find the sum of all elements of the array. C code find sum of elements of the array. Add elements of an array using for loop in C programming. Logic

Program Find the Average using Function -
C code to find the average using function. We have created user defined function average() for the calculation of average. The numbers entered by user are passed to this c function

C Program to Find Smallest array element -
Finding smallest value in an Array is a classic C array program. C code gives you an insight of iteration, array and conditional operators. We iteratively check each element of array...

C Add two numbers and display their sum -
C program code input two numbers from user and calculate their sum. C program to add 2 numbers and printing their sum as output. How to add two numbers in C programming.

Multiple If Statements in C Programming -
The statements inside the body of "if" only execute if the given condition returns true. If the condition returns false then statements inside "if" are skipped. Else and else..if are...

C++ Computes Discrete Fourier Transform -
This is a C++ Program to perform Fast Fourier Transform. A 'Fast Fourier transform' (FFT) is an algorithm to compute the discrete Fourier transform (DFT) & its inverse. Fourier analysis

Snake Game graphic code in a C program -
C programming language Snake game. Use arrow keys to direct the snake. Avoid the head of snake not to hit any part of snake. Pick beats untill you win the game. Press