摘要:
本章问题 1.成员和数组元素有什么区别? answer:Structure members can be all different types;they are accessed by name;and unused memory may be between adjacent(邻近的) memb 阅读全文
摘要:
本章问题 1.具有空函数体的函数可以作为存根使用,你如何对这类函数进行修改,使其更有用? answer:Have the stub(存根) print out a message when it is called,perhaps printing the values it was given a 阅读全文
摘要:
本章问题 1.如果一个值的类型无法简单的通过观察它的位模式来判断,那么机器是如何知道应该怎样对这个值进行操纵的? answer:The machine doesn't make this determination.The compiler creates the appropriate instr 阅读全文
摘要:
本章问题 1.这个表达式的类型和值为多少? answer:The cast is applied to the result of the division,and because both operand are integers,a truncating(截断) integer division 阅读全文
摘要:
本章问题 1.Is the following statement legal?If so,what does it do? (下面的语句是否合法,如果合法,它做了什么) answer:It is legal,but it doesn't affect the program's state,Non 阅读全文
摘要:
本章问题 1.What is the range for characters and the various integer types on your machine? (在你的机器上,字符型和整型的范围是多少?) answer : Depends,look in <limits.h> for 阅读全文
摘要:
本章问题 1.Comments in C do not nest(嵌套).What would be the result of "commenting out" the code in the example shown below? (注释在C里面不能嵌套,下面“commenting out”注 阅读全文
摘要:
本章例程 程序1.1 重排字符 本章问题 1.C is a free-form languague,which means that there are no rules regarding how programs must look.Yet the sample program followed 阅读全文