# JavaScript Programming

## JavaScript > Code Examples

### A Main Window Document

Returning a Reference to a Pointer In C++ -
To declare such a function, precede its name with * and &. In the body of the function, you can do whatever is appropriate. An important rule with this type of "function" is that it must

C++ Using The If Else Ladder Else If Clause -
The "expressions" are evaluated in order; if an expressionis true, the 'statement' or 'block of statement' associated with it is executed, and this terminates the whole chain. The Code for

C Programs Second Largest Array Element -
Finding the second largest value in an array is a classic C array program. Program gives you an insight of iteration, array and conditional operators. We iteratively check each element

The C Language Print the Floyd's Triangle -
Floyd's triangle, named after 'Rober Floyd', is a Right Angled Triangle, which is made using natural numbers. Starts from 1, consecutively selects the next Greater number in Sequence.

C Program Inputs two Strings & Compares -
Lets take 2 Strings as input and store them in the arrays string1[] and string2[] respectively. "Count the Number" of characters in both the arrays and store the result in the variables co1

C Find Prime Numbers Between the Range -
The program takes the range and finds all the 'Prime Numbers' between the range & prints. Lets first take the range of numbers between which you have to find the prime numbers as

Find Maximum between 2 Numbers using -
C Program input two numbers from user and find maximum between two numbers using switch case. Input two numbers. Store it in a variable say j1 & j2. Switch expression j1 > j2

Find GCD of two Numbers using Recursive -
In mathematics, the 'Euclidean' algorithm, or Euclid's algorithm, is a method for computing the 'greatest common divisor' of two (usually positive) integers, also known as the greatest