-10

Here is my code, and my error message is, "error C4716: 'decToBinary': must return a value" Basically, I want the user to input an integer and have the program return the binary expansion in reverse order. How do I go about fixing this? Thank you!

enter image description here

klu20
  • 21
  • 5

1 Answers1

3

The error message is pretty clear: you declared that your function would return an int, but you never did.

Scott Hunter
  • 48,888
  • 12
  • 60
  • 101