Visual Basic Programming Code Examples
Visual Basic > Code Snippets Code Examples
Change text color in a text box
Count the Occurrence of each C Keywords -
C Program 'counts the occurrences' of each C keyword by array structure. "C keywords" are the words which have a definition and cannot be used as an identifier. Continue, double, for
C Coding Implement Queues using Stacks -
C language program code to ask the user for the operations like insert, delete and display. According to the entered option access the respective function using switch statement.
C++ Finding Median of Two Sorted Arrays -
Program find the 'median' of elements where elements are stored in 2 'different arrays'. We need to find 'combined' median of 2 different 'data set'. So it includes sorting of both arrays
Find the First Occurrence of a Character in -
C program to 'input any string' from user and find the 'first occurrence' of a given character in the string. Input string from user and store it in a variable say "str". Run a loop from start
How to pass an entire array to a function -
Pointer var1 is pointing to the first element of the array and the var2 is the size of the array. In the loop we are incrementing pointer so that it points to the next element of the array
Check Alphabets by Conditional Operator -
C program code input a character and check whether the character is alphabet or not using Conditional/Ternary operator ?:. How to check alphabets by conditional operator...
C program code to set nth bit of a number -
We use bitwise OR | operator to set any bit of a number. C Bitwise OR operator evaluate each bit of the resultant value to 1 if any of the operand corresponding bit is 1. Input the
C++ Finding Area of Circle using Function -
C++ Program should have two functions one which takes radius as parameter and second takes diameter as parameter. If enters wrong option then tell users its 'valid selection' and