Q&A Discussions
[SOLVED]Explain the output?
8 Votes
5 AnswersPlease... Explain...
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 Answerswhy is it giving n??
0 Votes
2 AnswersPlz explain output?
0 Votes
2 AnswersPlease Helpp
1 Vote
1 AnswerC#.net datatype
0 Votes
1 AnswerHot today
What is a web browser intension?
1 Votes
Mentors
1 Votes
Percobaan
0 Votes
Thread local : global vs local
0 Votes
Postgrrsql and python
0 Votes
python
0 Votes
Codding lern
0 Votes
Data Analysis Course
1 Votes