Tutorials
Courses
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
32.1K+ articles
DSA
19.9K+ articles
Python
19.6K+ articles
Experiences
15.8K+ articles
Interview Experiences
14.1K+ articles
School Learning
11.1K+ articles
C++
3.7K+ articles
C++ Programs
1.5K+ articles
C Language
1.3K+ articles
C Programs
441+ articles
C Conversion Programs
22 posts
Recent Articles
Popular Articles
C Program For Octal to Decimal Conversion
Last Updated: 08 June 2023
The number system is one of the ways to represent numbers. Every number system has its own base or radix. For example, Binary, Octal, Decimal, and Hexadecimal Number syste...
read more
C Programs
C Language
Picked
C Conversion Programs
C Program For Hexadecimal to Decimal Conversion
Last Updated: 02 August 2022
Here we will build a C program for hexadecimal to decimal conversion using 5 different approaches i.e.Using format SpecifierUsing Switch caseUsing array Using while loopUs...
read more
C Programs
C Language
Picked
C Conversion Programs
C Program For Decimal to Hexadecimal Conversion
Last Updated: 02 August 2022
Here we will build a C Program For Decimal to Hexadecimal Conversion using 4 different approaches i.e.Using format specifierUsing modulus division operatorWithout using th...
read more
C Programs
C Language
Picked
C Conversion Programs
Converting String to Long in C
Last Updated: 10 April 2023
Here, we will see how to build a C Program For String to Long Conversion using strtol() function.Syntax:long int strtol(char *string, char **ptr, int base)The first argume...
read more
C Programs
C Language
Picked
C Conversion Programs
C Program For Int to Char Conversion
Last Updated: 08 May 2023
To convert the int to char in C language, we will use the following 2 approaches:Using typecastingUsing sprintf()Example:Input: N = 65Output: A1. Using TypecastingMethod ...
read more
C Programs
C Language
Picked
C Conversion Programs
C Program For Char to Int Conversion
Last Updated: 26 August 2024
Write a C program to convert the given numeric character to integer.Example:Input: '3'Output: 3Explanation: The character '3' is converted to the integer 3.Input: '9'Outpu...
read more
C Programs
C Language
Picked
C Conversion Programs
C Conver
C Program For Boolean to String Conversion
Last Updated: 07 September 2022
To convert boolean to string in C we will use the following 2 approaches:Using Conditional StatementsUsing Ternary OperatorInput:bool n = true Output:string true1. Using C...
read more
C Programs
C Language
Picked
C Conversion Programs
C Program For Long to String Conversion
Last Updated: 03 August 2022
To convert the long to string in C language we will use the following 2 approaches:Using Macros with sprintfUsing sprintfInput:long = 1234 Output:string 12341. Using Macro...
read more
C Programs
C Language
Picked
C Conversion Programs
Convert String to Integer Vector in C++
Last Updated: 06 December 2024
Strings are sometimes used to represent the numerical data which needs to be converted back to integer, but sometimes we may need to convert it to vector of integers inste...
read more
Technical Scripter
C++ Programs
C++
Picked
Technical Scripter 2022
STL
cpp-vector
C Conversion Programs
Different Ways to Convert Hex String to Integer in C++ STL
Last Updated: 08 November 2022
A hexadecimal number is a number whose base is 16. has numerals 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, and 15. And 10, 11, 12, 13, 14, and 15 these numbers are ...
read more
Technical Scripter
C++ Programs
C++
Picked
Technical Scripter 2022
STL
C Conversion Programs
Convert String to size_t in C++
Last Updated: 28 November 2022
To convert String to size_t in C++ we will use stringstream, It associates a string object with a stream allowing you to read from the string as if it were a stream (like ...
read more
Technical Scripter
C++
Picked
Technical Scripter 2022
C Conversion Programs
Convert a Char Array to Double in C
Last Updated: 21 May 2023
Converting a char array to a double is a common operation in C programming. It involves taking a string of characters that represent a numerical value and converting it to...
read more
C Programs
C Language
Picked
C Conversion Programs
C++ Program For Binary To Octal Conversion
Last Updated: 23 June 2023
The problem is to convert the given binary number (represented as a string) to its equivalent octal number. The input could be very large and may not fit even into an unsi...
read more
C++ Programs
C++
C Conversion Programs
C Program to Convert Decimal to Octal
Last Updated: 26 October 2022
Given a decimal number as input, we need to write a program to convert the given decimal number into an equivalent octal number. i.e convert the number with base value 10 ...
read more
C Programs
C Language
C Conversion Programs
Convert Binary to Decimal in C
Last Updated: 02 April 2025
In this article, we will learn how to write a C program to convert the given binary number into an equivalent decimal number. Binary numbers are expressed in base 2 ( 0, 1...
read more
C Programs
C Language
C Conversion Programs
1
2
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 !