Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Python
21.3K+ articles
Experiences
16.6K+ articles
Interview Experiences
14.2K+ articles
C++
4.3K+ articles
C++ Programs
2.4K+ articles
CPP Examples
714+ articles
cpp-string
157+ articles
cpp-strings
59+ articles
C++ Conversion Programs
15 posts
Recent Articles
Popular Articles
Convert String to Char Array in C++
Last Updated: 11 January 2025
In C++, we usually represent text data using the std::string object. But in some cases, we may need to convert a std::string to a character array, the traditional C-style ...
read more
C++ Programs
C++
cpp-string
C++ Conversion Programs
CPP Examples
C++ Program For Double to String Conversion
Last Updated: 26 July 2022
Here, we will build a C++ program for double to string conversion using various methods i.e.Using to_stringUsing stringstreamUsing sprintfUsing lexical_castWe will keep th...
read more
C++ Programs
C++
Picked
C++ Conversion Programs
Convert char* to std::string in C++
Last Updated: 16 October 2024
Strings are generally represented as an instance of std::string class in C++. But the language also supports the older C-Style representation where they are represented as...
read more
C++ Programs
C++
cpp-strings
C++ Conversion Programs
Convert Vector of Characters to String in C++
Last Updated: 03 December 2024
In this article, we will learn different methods to convert the vector of character to string in C++.The most efficient method to convert the vector of characters to strin...
read more
Technical Scripter
C++ Programs
C++
Picked
Technical Scripter 2022
cpp-vector
C++ Conversion Programs
How To Convert a Qstring to Hexadecimal in C++?
Last Updated: 28 April 2025
In CPP Qt5 has a QString class for working with strings. It is very powerful and has numerous methods, A Unicode character string is made available via the QString class. ...
read more
Technical Scripter
C++
Picked
Technical Scripter 2022
C++ Conversion Programs
Convert Camel Case String to Snake Case in C++
Last Updated: 05 March 2023
Programming can be complicated, and it's essential to ensure that our code is readable and well-structured. One way to improve code clarity is by using meaningful and desc...
read more
C++ Programs
C++
C++ Conversion Programs
C++ Program For Octal To Decimal Conversion
Last Updated: 03 July 2023
Given an octal number as input, we need to write a program to convert the given octal number into an equivalent decimal number.Examples:Input : 67Output: 55Input : 512Outp...
read more
C++ Programs
C++
C++ Conversion Programs
C++ Program For Decimal To Octal Conversion
Last Updated: 03 August 2023
The octal numbers are a base 8 number system that uses digits from 0-7 and the decimal numbers are a base 10 numbers system that uses 10 digits from 0-9 to represent any n...
read more
C++ Programs
C++
C++ Conversion Programs
C++ Program For Hexadecimal To Decimal Conversion
Last Updated: 22 August 2023
The hexadecimal numbers are base 16 numbers that use 16 symbols {0, 1, 2, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F} to represent all digits. Here, (A, B, C, D, E, F) represents ...
read more
C++ Programs
C++
C++ Conversion Programs
C++ Program For Decimal To Hexadecimal Conversion
Last Updated: 04 August 2023
In this article, we will learn to write a C++ program to convert a decimal number into an equivalent hexadecimal number. i.e. convert the number with base value 10 to base...
read more
C++ Programs
C++
C++ Conversion Programs
C++ Program For Decimal To Binary Conversion
Last Updated: 21 September 2023
Binary Numbers uses only 0 and 1 (base-2), while Decimal Number uses 0 to 9 (base-10). In this article, we will learn to implement a C++ program to convert Decimal numbers...
read more
C++ Programs
C++
C++ Conversion Programs
C++ Program For Binary To Decimal Conversion
Last Updated: 04 August 2023
The binary number system uses only two digits 0 and 1 to represent an integer and the Decimal number system uses ten digits 0 to 9 to represent a number. In this article, ...
read more
C++ Programs
C++
C++ Conversion Programs
How to Convert a C++ String to Uppercase?
Last Updated: 17 October 2024
Converting a string to uppercase means changing each character of the string that is in lowercase to an uppercase character. In the article, we will discuss how to convert...
read more
C++ Programs
C++
Picked
cpp-string
C++ Conversion Programs
CPP Examples
How to Convert an Enum to a String in C++?
Last Updated: 21 February 2024
In C, an enumeration is a user-defined data type whose members can be assigned some integer values. In this article, we are going to discuss how to convert an Enum to a St...
read more
C++ Programs
C++
Picked
cpp-string
cpp-map
C++ Conversion Programs
CPP Examples
How to Prevent Implicit Conversions in C++?
Last Updated: 08 April 2024
In C++, implicit conversions are automatic type conversions that are performed by the compiler when a value is used with a compatible type. While they can be useful, they ...
read more
C++
Picked
cpp-operator
C++-Misc C++
C++ Conversion Programs
CPP Examples
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !