Q&A Discussions
[SOLVED]Explain the output?
8 Votes
5 AnswersPlease... Explain...
0 Votes
2 Answerswhy is it giving n??
0 Votes
2 Answers#include <iostream>
#include <bitset>
int main()
{
int myDecimalNumber;
std::cin >> myDecimalNumber;
std::string binary = std::bitset<8>(myDecimalNumber).to_string(); //to binary
std::cout<<binary<<"\n";
unsigned long decimal = std::bitset<8>(binary).to_long();
std::cout<<decimal<<"\n";
return 0;
}
2 Votes
5 AnswersPlz explain output?
0 Votes
2 AnswersPlease Helpp
1 Vote
1 AnswerC#.net datatype
0 Votes
1 AnswerHot today
Using Python on VScode
2 Votes
Python Developer
0 Votes
fully dynamic arrays
1 Votes
Wayss
0 Votes
Hearts
0 Votes
Project subjection
0 Votes