c语言程序设计现代方法第八章答案.docxVIP

  • 23
  • 0
  • 约2.97千字
  • 约 4页
  • 2021-03-04 发布于天津
  • 举报
Chapter 8 An swers to Selected Exercises 1.[was #4] The problem with sizeof(a)/sizeof(t)is that it cant easily be checked for correct ness by some one readi ng the program. (The reader would have to locate the declarati on of aand make sure that its eleme nts have typet.) 2.[was #8] To use a digitd(i n character form) as a subscript into the arraya, we would write a[d-0]. This assumes that digits have consecutive codes in the un derly ing character set, which is true of ASCII and other popular character sets. 7.[was #10] const int segme nts[10][7] = {{1, 1, 1, 1, 1, 1}, {0, 1, 1}, {1, 1,0, 1,

文档评论(0)

1亿VIP精品文档

相关文档