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() Function Example | strlen() in C++
C++ strlen() is an inbuilt function that is used to calculate the length of the string. It is a beneficial method to find the length of the string. The strlen() function is defined under the string.h header file.
C++ strlen()
The …
C++ strstr() Function Example | strstr() in C++
C++ strstr() is an inbuilt string handling function that is used to find the first occurrence of a substring in a given string. It is defined in string.h header file. It is used to find the occurrence of a substring in a string. This…
C++ strtok() Function Example | strtok() in C++
C++ strtok() is an inbuilt function that is used for splitting a string based on a delimiter. C++ strtok() function works on the concept of the token. It returns the next token of the string, which is terminated by a null symbol. The…
C++ strspn() Function Example | std::strspn In C++
C++ strspn() is an inbuilt string handling function that works with two parameters and returns the length of the initial substring of the string which is pointed by the first parameter(string1) which only consists of the characters that are…
C++ strpbrk() Function Example | std::strpbrk in C++
C++ strpbrk() is an inbuilt function that is used for string handling. It is defined under the string.h header file. The strpbrk() function finds the occurrence of the first character in the first string with the specified character of the…
C++ strcspn() Function Example | std::strcspn in C++
C++ strcspn() is an inbuilt function that is used for string handling. It is defined in string.h header file. The strcspn() function calculates a length of the characters before the first occurrence of that particular character in both the…
C++ strchr() Function Example | std::strchr() in C++
C++ strchr() is an inbuilt function that is used for string handling. It is defined under the string.h header file. This is used for finding the first occurrence of a character in a particular string. If the occurrence is found a pointer to…
C++ memchr() Function Example | std::memchr in C++
C++ memchr() is an inbuilt function that is used for string handling. It is defined under the string.h header file. The memchr() function finds the first occurrence of a character in the string within a specified number of characters in the…
C++ strncmp() Function Example | C++ Standard Library
C++ strncmp() is an inbuilt function that is used for string handling. It is defined in string.h header file. The strncmp() function is a predefined library which is used for comparing two strings of which the characters are terminated by…
C++ strcmp() Function Example | C++ Standard Library
C++ strcmp() is an inbuilt function that is used for string handling. It is defined in string.h header file. The strcmp() function is a predefined library which is used for comparing two strings of which null characters terminate the…
C++ Set Example | Sets in C++ Program
C++ set is an inbuilt associative container that contains unique objects because the value of the elements identifies the container. They store unique elements in a particular order. The value of the elements in a set cannot be modified…