Browsing Category
C++
C++ is a general purpose programming language and widely used now a days for competitive programming. It has imperative, object-oriented and generic programming features. C++ runs on lots of platform like Windows, Linux, Unix, Mac etc.
C++ strlen: The Complete Guide
If there is no null character in the string, the function's behavior is undefined. In this tutorial, we will see the C++ strlen() function with the help of examples.
C++ strlen
C++ strlen() is a built-in function used to calculate the…
Quick Sort in C++: The Complete Guide
Like Merge Sort, Quick Sort is also a recursive sorting algorithm that uses Divide and Conquers method. Please read our Merge Sort tutorial first if you don't know what Divide and Conquer are.
British computer scientist Tony Hoare…
Merge Sort in C++: Complete Guide with Program
In the Merge Sort algorithm, we divide the array recursively in two halves until each sub-array contains a single element, and then we merge the sub-array in a way that results in a sorted array.
C++ Merge Sort
C++ Merge sort is an…
Bubble Sort In C++: The Complete Guide
C++ Bubble Sort is an algorithm that sorts the values of the array. Bubble Sort is a sorting technique to sort an array or sort a list of many numbers. The bubble sorting algorithm is also known as Sinking Sort.
We will implement the C++…
References in C++: The Complete Guide
If we declare a variable reference, it can be accessed by either the variable's name or reference name. It is effortless to declare references as declared by a simple “&.”And can be accessed by a special ‘.’ operator.
References in…
C++ unordered_map: The Complete Guide
C++ unordered_map containers are faster than typical map containers. This is attributed to the fact that the unordered map is implemented using hash tables.
C++ unordered_map
C++ unordered_map is a built-in container that is used to…
C++ strerror() Function: The Complete Guide
This strerror() function is often compared with perror(). They both return the identical error description. The strerror() method in C++ returns the textual description of a system error code. The strerror() takes the argument: ernum, the…
C++ strcoll() Function: The Complete Guide
C++ strcoll() function is defined under the string.h header file. The main advantage of using strcoll() is that it works on the concept of pointers. It has two parameters: the strings that are to be compared.
C++ strcoll()
C++ strcoll()…
C++ Inline Functions: The Complete Guide
Inline functions are a great way to define small functions whose execution time is less than the time it takes to transit the control from the called function to the calling function.
C++ Inline Function
The inline function in C++…
C++ strncmp() Function: The Complete Guide
The std::strncmp() function lexicographically compares not more than count characters from two null-terminated strings and returns the integer based on the outcome.
C++ strncmp()
The strncmp() function is a built-in string handling…
C++ strpbrk() Function: The Complete Guide
The strpbrk() function in C++ searches for the set of characters present in the string in another string.
C++ strpbrk()
C++ strpbrk() is a built-in function used for string handling. It is defined under the string.h header file. The…