Problem with example 1.5.2 in K&R book on C

前端 未结 4 655
耶瑟儿~
耶瑟儿~ 2020-12-17 01:47

I\'m teaching myself C with K&R and am stumped by one of the examples in the book. I compile the code exactly as it is written in the example but it does not do what th

4条回答
  •  被撕碎了的回忆
    2020-12-17 02:03

    Apart from the return value of main it looks OK.

    Do you do the CtrlD (Unix) or CtrlZ (Windows) at the end of input if you are entering values from keyboard?

提交回复
热议问题