Visual Basic Programming Code Examples
Visual Basic > API and Miscellaneous Code Examples
Convert integer to Hex
Code print the address of array elements -
For loop to print value and address of each element of array. Just to demonstrate that the array elements are stored in contiguous locations, I am displaying the addresses in...
C Language Finding the Sum of G.P Series -
C Language program is used to Find the Sum of the geometric progression series. Here G.P stands for geometric progression. Geometric progression, or GP, is a sequence where each
Code Print Natural Numbers from 1 to N -
Declare c recursive function to print natural numbers in a range. Lets give a meaningful name to function, "printNaturalNumbers()". Next we need to print Natural Numbers in...
The C++ Shortest path program using STL -
Process a request; return false if end of file. A simple main that reads a file given by argv[1] and then calls "processRequest" to compute shortest paths. Then 'Skimpy' error checking
C Count Trailing Zeros in a Binary Number -
How to find total number of trailing zeros in any given number using bitwise operator in C programming. Write a C program code input any number from user and count number of...
Create an Array of Chars in C++ Language -
String is a "sequence of characters". char data type is used to represent one single character in C++. So if you want to use a String in your program then you can use an "array of chars".
Remove all Repeated Characters in Strings -
C program to remove all Repeated characters in a String using loops. Input string from user. Remove all duplicate characters from a given string. Remove all occurrences of a character
C Code Find Power of a Number Recursion -
C Language program code to find Power of a Number using Recursion. Power of a number is the number multiplied to itself for number of times it has been raised to Exam. 9^3=729