# Visual Basic Programming Code Examples

## Visual Basic > Code Snippets Code Examples

### Capture window under mouse

C Diameter Circumference & Area of circle -
C Functions to find Diameter, Circumference and Area of circle. First assign a meaningful name to all the three functions. Say function to calculate diameter, circumference & area

Find GCD of the Numbers Using Recursion -
C Language program, use recursion, finds the GCD of the two numbers entered by the User. The user enters 2 numbers by using a space in between them or by pressing enter after each

C++ Sample Codes Implement Merge Sort -
Merge-Sort is based on an algorithmic design pattern called Divide & Conquer. It forms tree structure. The height of the tree will be log(n) And we merge n element at every level of the

C++ Language Passing Arrays to Function -
In this C++ Code, we are passing 2 arrays a & b to the "function sum()". Function adds the "corresponding elements" of both the arrays and display them. This c++ function adds the

Lets Learn String Functions in C Language -
Find the "Length of str1". Increment count till we reach the Terminating character. Find the "Length of str2". Check that we have enough 'space' for both strings. Copy 2. string to end

Implement Two Stacks using Single Array -
C Programming code implements two Stacks using a Single Array & Check for Overflow & Underflow. A Stack is a linear data structure in which a data item is inserted and deleted...

Program to Find Largest Element of Array -
To find the "Largest Element", the first two elements of array are checked and largest of these two element is placed in arr[0]. Then, the first and third elements are checked and

C++ Codes Store Information of a Student -
In this C++ program, a "structure" (student) is created which contains name, roll and marks as its 'data member'. A structure variable(s) is created. Then, data (name, roll and marks) is