Farhan Muhamed has Published 58 Articles

How to concatenate multiple C++ strings on one line?

Farhan Muhamed

Farhan Muhamed

Updated on 22-Apr-2025 19:07:12

980 Views

Sting Concatenatination is the process of creating a single string from multiple strings by combining them all together. In this article, we will discuss all approaches to concatenate multiple strings using C/C++ program. First of all, let's understand the problem statement. A set of C++ strings are ... Read More

How do you reverse a string in place in C or C++?

Farhan Muhamed

Farhan Muhamed

Updated on 22-Apr-2025 11:42:12

616 Views

Reversing a string means, moving first character to last, second character to second last and so on. In this article we will discuss how to reverse a string in place using C/C++ program. In the "in place" string reversing, we are not allowed take extra memory to store the string ... Read More

How do I create a random alpha-numeric string using C++?

Farhan Muhamed

Farhan Muhamed

Updated on 22-Apr-2025 11:41:26

832 Views

Alpha-numeric string are the strings that containing both alphabets and numbers mixed together. These are generally used security system for generating passwords or hash keys. In this article, we will learn all the approaches for developing a C++ program to generate random alpha numeric stiring. First of all, let's understand ... Read More

Convert number string to integers in C++

Farhan Muhamed

Farhan Muhamed

Updated on 18-Apr-2025 19:02:00

335 Views

There are several inbuilt functions and objects to convert a number string to an integer in C++. Every method has its own advantages and disadvantages. In this article, we will discuss all the approaches to convert a number string to an integer in C++ with example code and use cases. ... Read More

Extract all integers from string in C++

Farhan Muhamed

Farhan Muhamed

Updated on 18-Apr-2025 18:54:43

7K+ Views

In this article, we will discuss how to extract all the integers from a string using C++ program. We will explore all the possible approaches to do so. First of all, let's understand the problem statement. We have a string that contains a mix of digits and non-digits. ... Read More

Case-insensitive string comparison in C++

Farhan Muhamed

Farhan Muhamed

Updated on 17-Apr-2025 19:24:48

8K+ Views

To compare two strings in C++, we can use various inbuilt functions and approaches that are already discussed in the previous sections. However, there are some cases where we need to compare two strings case-insensitively, meaning that we need to ignore the case of the characters in the strings while ... Read More

Check if a string contains a sub-string in C++

Farhan Muhamed

Farhan Muhamed

Updated on 17-Apr-2025 18:56:43

7K+ Views

A substring is a continues sequence of characters within a larger string. For example, the string "point" a substring of the string "TutorialsPoint". In this article, we will learn different approaches to check if a string contains a substring in C++. Here is a list of approaches for checking if ... Read More

Convert an integer to a hex string in C++

Farhan Muhamed

Farhan Muhamed

Updated on 17-Apr-2025 18:33:36

21K+ Views

Hexadecimal is a base 16 numbering system that uses 16 digits (from 0 to 9, and then A to F) to represent numbers. It is commonly used in computing systems to represent and store data. In this article, we will learn how to convert a normal integer to a hexadecimal ... Read More

C/C++ Macro for string concatenation

Farhan Muhamed

Farhan Muhamed

Updated on 16-Apr-2025 19:01:53

4K+ Views

C++ provides multiple ways to concatenate strings. Macro string concatenation is one of such way. In this article, we will learn how to use C++ preprocessor macros to concatenate strings and tokens. Understanding Macros in C++ In C++, macros are small pieces of code that are defined using the ... Read More

C++ Program to Represent Graph Using Linked List

Farhan Muhamed

Farhan Muhamed

Updated on 15-Apr-2025 18:25:28

1K+ Views

What is Linked List? A linked list is a linear data structure which can store a collection of "nodes" connected together via links i.e. pointers. Linked lists nodes are not stored at a contiguous location, rather they are linked using pointers to the different memory locations. A linked list can ... Read More

Advertisements