Conflicting types in C, why?

前端 未结 2 1253
轻奢々
轻奢々 2021-01-21 17:55

I\'m trying to write a basic practice with C, working with Binary and Hex. I made a method to print the multiples of 2 (powers of 2) and a separate method to print out the Hex f

2条回答
  •  逝去的感伤
    2021-01-21 18:48

    You're trying to use (call) printhex before you declare it. Either forward declare it by saying void printhex (unsigned int u) or void printhex (unsigned int) or move the definition, to before print2.

提交回复
热议问题