---
title: "Discussion on \"Binary to Decimal & Decimal to Binary in C++ / Python Using Some inbuild Functions.\" | Hashnode"
description: "Discussion on \"Binary to Decimal & Decimal to Binary in C++ / Python Using Some inbuild Functions.\". C++ :\n\nDecimal to Binary\n\n // return binary string with size 'b' which is binary representation of decimal number 'num'\n bitset<b>(num).to_string();\n\n Example : \n\n // Binary String 't' of 65 with 32 bits \n string t = bitset<32>(65).to_string();\n\n\nBin..."
url: "https://hashnode.com/posts/binary-to-decimal-decimal-to-binary-in-c-python-using-some-inbuild-functions/646b165f900ad00abe59ee46"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Binary to Decimal & Decimal to Binary in C++ / Python Using Some inbuild Functions.](https://sspark.hashnode.dev/binary-to-decimal-decimal-to-binary-in-c-python-using-some-inbuild-functions?utm_source=hashnode&utm_medium=feed)

C++ : Decimal to Binary // return binary string with size 'b' which is binary representation of decimal number 'num' bitset<b>(num).to\_string(); Example : // Binary String 't' of 65 with 32 bits string t = bitset<32>(65).to\_string(); Bin...

May 22, 2023 · 1 min read · sspark.hashnode.dev  
Read the article

-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#python](https://hashnode.com/tag/python)
-   [#cpp](https://hashnode.com/tag/cpp)

## Written by

[Sandip Kanzariya](https://hashnode.com/@Sspark)

@Sspark

  
[View profile](https://hashnode.com/@Sspark)

like to learn new stuff

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
