C Programming Code Examples
C > Arrays and Matrices Code Examples
Program Code to copy array in C
C++ Language & Monoalphabetic Cypher -
A substitution cipher is a method of encoding by which units of 'plaintext are replaced' with ciphertext, according to a regular system; the "units" may be "single letters", pairs of letters
Code Find the Biggest Number in an Array -
C Program to find the biggest number in an array of numbers using recursion. Program prints the largest number in an unsorted array of elements using recursion. Array is...
C++ Compare Binary & Sequential Search -
A 'function implementing' Binary search on a 'Sorted array'. Every time this function called, counted as a iteration of 'binary search'. So if value is "Less than Value" at start index more
Compare two Strings in the C++ language -
Function will return 0, if the strings are equal; return 'negative value', if "string1 is less" than string2 and return "positive value" if string1 is greater than string2. This function 'compares'
C++ Program to Implement Interval Tree -
In computer science, An "Interval Tree" is an ordered tree data structure to hold intervals. Specifically, it allow one to efficiently find all intervals that overlap with any given interval
How to Use Constructors in C++ language -
Read the comments in the following program to understand each part of the program. This is a "default constructor" of the class, you do note that it's name is same as class name and
Generate All Possible Subsets With Exactly -
Algorithm takes the input of "n" data element and 'prints all possible' combination of length 'k'. It maintains a boolean array of length 'n'. If the corresponding boolean value is true, then
Implement Nearest Neighbour Algorithm -
This is a C++ Program to implement nearest neighbour algorithm to 'solve TSP'. This C++ program implements the travelling salesman problem which computes the minimum cost