# Php Programming Code Examples

## Php > Site Navigation Code Examples

C++ Code for Two Dimensional (2D) Array - "Two dimensional" (2D) array can be made in C++ Language by using two for loops, first is outer for loop and the second one is inner for loop. Outer for Loop is responsible for rows

C Language Program Calculate Percentage - Percent means per cent (hundreds), a ratio of the parts out of 100. The symbol of percent is %. We count 'Percentage of Marks Obtained', return on investment and Percentage can go

Prefix Increment ++ Operator overloading - The only difference is that, the return type of operator function is Check in this case which allows to use both codes ++obj; obj1 = ++obj;. It is because, temp returned from "operator"

Find Second Largest & Smallest Elements - C Program finds second largest & smallest elements in an array. The program sorts the array in an descending order. Then it finds the second largest and smallest element in

C Code Check if an Integer is Odd or Even - C Language Program takes the given integer & checks whether the integer is odd or even. Take the integer to be checked as input. Find the remainder of the integer by dividing it by

C Coding Print all the Paths from the Root - C language program Function to store all the paths from the root node to all leaf nodes in a array. Function which helps the print_path to recursively print all the nodes. Function to...

Program Convert Decimal to Hexadecimal - In C++ programming, you have to ask to the user to enter the desired decimal number to convert it into hexadecimal number to print the equivalent value in hexadecimal format

Code Sum of Prime numbers between 1- n - C program to find sum of all prime numbers between 1 to n using for loop. Prime numbers are positive integers greater than 1 that has only two divisors 1 and the number itself. For