Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

New answers tagged

2 votes

Convert from decimal to binary and octal

The code presented could be more readable. Starting with comments telling what "everything" is there for. Naming: integers/numbers are not decimal. Representations are, unless specified ...
user avatar
  • 4,398
0 votes

Convert from decimal to binary and octal

This may give you computational boost. Although as pointed out by others in comment this may be "The" code produced by modern day compilers. ...
user avatar
3 votes

Convert from decimal to binary and octal

The global variables make it harder to reuse your code. They seem to be unnecessary anyway: the integer variables are used only in main(), and ...
user avatar
  • 57.8k

Top 50 recent answers are included