Php Programming Code Examples
Php > Statistics and Counters Code Examples
Count Code Lines
Find the Length of Strings without strlen() -
We are Counting the Number of characters in a given String to find out & display its Length on console. Upon 'execution' of this program, the user would be asked to enter string, then
Perform to a 2D FFT Inplace a Complex 2D -
A fast Fourier transform (FFT) is an algorithm to computing the discrete 'Fourier transform' and its inverse. Fourier analysis converts time (or space) to frequency and vice versa; an FFT
Code Find Maximum Between 2 Numbers -
C program code to input two numbers and find maximum between two numbers using conditional/ternary operator ?:. How to find maximum minimum between two numbers
Learn Bitwise Operators in C++ Language -
in C++, "bitwise operators" are similar to the Logic operators, but they perform the same logical operations on bits. All data in memory is represented in the "binary form". Variables
C++ Program to Solve Knapsack Problem -
This is a C++ Program to 'knapsack problem' using dynamic programming. The knapsack problem or "rucksack problem" is a problem in combinatorial optimization: given a set of
Code to find the Frequency of Odd & Even -
Program code finds frequency of odd & even numbers in the given matrix. The program first accepts the matrix. Then finds the odd and even numbers in a matrix. Then finds the
Copy all Elements of one array to another -
Program code to read elements in array and copy all elements of first array into second array. C program to copy elements of array. Input size and elements in array, store it in
C Print Elements of Array using Recursion -
Define our Recursive Function to print array elements & say printArray(int arr[], int start, int len). The function takes three parameters where first is array to print, second is starting