<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>鼠侠网 - 《零起步快速通透C语言》的检测点和习题解答</title>
    <link>https://lizhongc.com/forum-47-1.html</link>
    <description>Latest 20 threads of 《零起步快速通透C语言》的检测点和习题解答</description>
    <copyright>Copyright(C) 鼠侠网</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Thu, 23 Apr 2026 15:08:08 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>https://lizhongc.com/static/image/common/logo_88_31.gif</url>
      <title>鼠侠网</title>
      <link>https://lizhongc.com/</link>
    </image>
    <item>
      <title>第13章习题</title>
      <link>https://lizhongc.com/thread-728-1-1.html</link>
      <description><![CDATA[第13章习题

1．在源文件studeop.c里，new_student函数用来输入新的学员信息。学员的学号是唯一的，但该函数并未检查用户输入的学号是否与现有的学员重复。请添加代码实施这样的检查，如果出现学号重复的情况则要求重新输入。

2．在源文件stuquery.c里有三个函数的函数 ...]]></description>
      <category>《零起步快速通透C语言》的检测点和习题解答</category>
      <author>站长</author>
      <pubDate>Mon, 09 Mar 2026 13:08:29 +0000</pubDate>
    </item>
    <item>
      <title>检测点13-1</title>
      <link>https://lizhongc.com/thread-727-1-1.html</link>
      <description><![CDATA[检测点13-1

1．如果链表中有三个stgSTUDENT类型的节点，按先后顺序分别起名叫A、B和C，则谁是谁的前驱，谁又是谁的后继？
答：A是B的前驱，C是B的后继；B又是C的前驱。

2．为什么我们将delete_student函数的形参声明为指向PSTUDENT的指针？
答：如果删除的首节点，就 ...]]></description>
      <category>《零起步快速通透C语言》的检测点和习题解答</category>
      <author>站长</author>
      <pubDate>Mon, 09 Mar 2026 13:07:47 +0000</pubDate>
    </item>
    <item>
      <title>第12章习题</title>
      <link>https://lizhongc.com/thread-726-1-1.html</link>
      <description><![CDATA[第12章习题：

1，用scanf接收输入的日期，格式为YYYY-MM-DD，然后再用printf函数按DD/MM/YYYY的格式打印输出。
参考答案：
# include 


int main (void)
{
    int y, m, d;
    printf (\&quot;请输入YYYY-MM-DD格式的日期：\&quot;);
    scanf (\&quot;%d-%d-%d\&quot;, &amp; y, &amp; m, &amp; d);
   ...]]></description>
      <category>《零起步快速通透C语言》的检测点和习题解答</category>
      <author>站长</author>
      <pubDate>Mon, 09 Mar 2026 02:56:25 +0000</pubDate>
    </item>
    <item>
      <title>检测点12-6</title>
      <link>https://lizhongc.com/thread-725-1-1.html</link>
      <description><![CDATA[检测点12-6

1．下面的代码片段打印输出什么？
printf(\&quot;[%5d]\\n\&quot;, 225);
printf(\&quot;[%-5d]\\n\&quot;, 225);
printf(\&quot;[%05d]\\n\&quot;, 225);
printf(\&quot;[%+5d]\\n\&quot;, 225);
printf(\&quot;[%#10.3f]\\n\&quot;, 56.78);
printf(\&quot;[%-10.3s]\\n\&quot;, \&quot;hello\&quot;);
printf(\&quot;[%%]\\n\&quot;);
答案：
[  225]
[22]]></description>
      <category>《零起步快速通透C语言》的检测点和习题解答</category>
      <author>站长</author>
      <pubDate>Mon, 09 Mar 2026 02:09:09 +0000</pubDate>
    </item>
    <item>
      <title>检测点12-5</title>
      <link>https://lizhongc.com/thread-724-1-1.html</link>
      <description><![CDATA[检测点12-5
1．对于源文件c1205.c，如果输入的是
223:   789～   289.5678
程序工作正常并可打印预期的结果。为什么？请分析字符摘取的转换过程。
答：库函数首先执行格式串里的第一个指令“%d”。这是一个转换说明，执行这个指令时会忽略从输入流中摘取的空白字符，直 ...]]></description>
      <category>《零起步快速通透C语言》的检测点和习题解答</category>
      <author>站长</author>
      <pubDate>Mon, 09 Mar 2026 02:08:13 +0000</pubDate>
    </item>
    <item>
      <title>检测点12-4</title>
      <link>https://lizhongc.com/thread-723-1-1.html</link>
      <description><![CDATA[检测点12-4

1．在源文件c1204.c中，数组s一共有几个元素？
答：3个。

2．在本节我们创建了文件myfile2.dat。请借助于stgS类型的对象，分多次调用fread函数，每次1个记录，将文件的内容读出并打印出来。既然是分多次调用fread函数，为何读取的不是同一条记录而是连续的 ...]]></description>
      <category>《零起步快速通透C语言》的检测点和习题解答</category>
      <author>站长</author>
      <pubDate>Mon, 09 Mar 2026 02:06:50 +0000</pubDate>
    </item>
    <item>
      <title>检测点12-3</title>
      <link>https://lizhongc.com/thread-722-1-1.html</link>
      <description><![CDATA[检测点12-3

1．在上述程序中，缓冲区的尺寸（宏BUFF_SIZE的值）最小是多少？
答：2。因为fgets会在读取的内容之后添加空字符。

2．编写一个程序，用fgets函数从标准输入读取文本行，并用fputs函数写到标准输出。
参考答案：
# include 

# define BUFF_SIZE 512

int  ...]]></description>
      <category>《零起步快速通透C语言》的检测点和习题解答</category>
      <author>站长</author>
      <pubDate>Mon, 09 Mar 2026 02:06:25 +0000</pubDate>
    </item>
    <item>
      <title>检测点12-2</title>
      <link>https://lizhongc.com/thread-721-1-1.html</link>
      <description><![CDATA[检测点12-2

1．编写程序，以文本模式将文件myfile1.txt的内容读出并写到标准输出。
参考答案：
# include 

int main (void)
{
    FILE * hfile = fopen (\&quot;myfile1.txt\&quot;, \&quot;r\&quot;);
    if (hfile == NULL) return -1;

    char c;

    while ((c = fgetc (hfile)) != E ...]]></description>
      <category>《零起步快速通透C语言》的检测点和习题解答</category>
      <author>站长</author>
      <pubDate>Mon, 09 Mar 2026 02:06:00 +0000</pubDate>
    </item>
    <item>
      <title>检测点12-1</title>
      <link>https://lizhongc.com/thread-720-1-1.html</link>
      <description><![CDATA[检测点12-1

源文件c1201.c是以文本模式创建或者打开文件并写入字符串。现在，请你修改这个源文件，尝试以二进制模式创建或者打开文件并写入相同的字符串，然后编译和运行修改后的程序。用HexView软件观察写入后的文件，看换行字符在写入文件后对应的是什么数字。
答案 ...]]></description>
      <category>《零起步快速通透C语言》的检测点和习题解答</category>
      <author>站长</author>
      <pubDate>Mon, 09 Mar 2026 02:05:29 +0000</pubDate>
    </item>
    <item>
      <title>第11章习题</title>
      <link>https://lizhongc.com/thread-719-1-1.html</link>
      <description><![CDATA[第11章习题

1．在源文件c1101.c里，我们用while语句打印所有学员的信息。请尝试使用for语句完成同样的功能。
参考答案：
# include 
# include \&quot;mytypes.h\&quot;
# include \&quot;studeop.h\&quot;
# include \&quot;stupublic.h\&quot;

int main (void)
{
    stgSTUDENT * pst_hdr = 0;   //指向 ...]]></description>
      <category>《零起步快速通透C语言》的检测点和习题解答</category>
      <author>站长</author>
      <pubDate>Mon, 09 Mar 2026 02:02:56 +0000</pubDate>
    </item>
    <item>
      <title>检测点11-7</title>
      <link>https://lizhongc.com/thread-718-1-1.html</link>
      <description><![CDATA[检测点11-7

在free_linkedlist函数里，可以将while语句改成下列这样吗？为什么？
while (phdr != NULL)
{
    tmp = phdr;
    free (tmp);
    phdr = phdr -&gt; next;
}
答：不行唷。tmp和phdr指向同一个节点，而free (tmp)释放这个节点，它也就不能通过phdr来访问了。 ...]]></description>
      <category>《零起步快速通透C语言》的检测点和习题解答</category>
      <author>站长</author>
      <pubDate>Mon, 09 Mar 2026 01:33:33 +0000</pubDate>
    </item>
    <item>
      <title>检测点11-6</title>
      <link>https://lizhongc.com/thread-717-1-1.html</link>
      <description><![CDATA[检测点11-6

1．逗号表达式的值（逗号运算符的结果）是什么？值的类型是什么？
答：逗号表达式的值是逗号运算符的右操作数的值，值的类型也是右操作数的类型。

2．C语言里的标号语句有哪些？
答：case标号语句、default标号语句和以标识符为前缀的标号语句。

3．label ...]]></description>
      <category>《零起步快速通透C语言》的检测点和习题解答</category>
      <author>站长</author>
      <pubDate>Mon, 09 Mar 2026 01:33:04 +0000</pubDate>
    </item>
    <item>
      <title>检测点11-5</title>
      <link>https://lizhongc.com/thread-716-1-1.html</link>
      <description><![CDATA[检测点11-5

1．对于表达式pstud -&gt; next = new_student ()，这是让对象pstud的next成员指向新分配的结构吗？
答：非也。这是让对象pstud所指向的（结构）对象的next成员指向新分配的结构。

2．对于表达式pstud = pstud -&gt; next，这是让对象pstud指向它的next成员所指 ...]]></description>
      <category>《零起步快速通透C语言》的检测点和习题解答</category>
      <author>站长</author>
      <pubDate>Mon, 09 Mar 2026 01:32:35 +0000</pubDate>
    </item>
    <item>
      <title>检测点11-4</title>
      <link>https://lizhongc.com/thread-715-1-1.html</link>
      <description><![CDATA[检测点11-4

1．在实现相同功能的前提下，上述表达式scanf (\&quot;%hhd\&quot;, &amp; pstud -&gt; brushc) != 1 || ! (pstud -&gt; brushc &gt;= 1 &amp;&amp; pstud -&gt; brushc  brushc) != 1 || pstud -&gt; brushc &lt; 1 || pstud -&gt; brushc &gt; 5)

2．在为结构成员comput输入浮点数时，未检查数值的有效性 ...]]></description>
      <category>《零起步快速通透C语言》的检测点和习题解答</category>
      <author>站长</author>
      <pubDate>Mon, 09 Mar 2026 01:32:16 +0000</pubDate>
    </item>
    <item>
      <title>检测点11-3</title>
      <link>https://lizhongc.com/thread-714-1-1.html</link>
      <description><![CDATA[检测点11-3

1．用一句话来解释为什么要将append_students函数的形参pphdr声明为指向指针的指针？
答：因为我们可能需要修改形参pphdr所指向的那个对象，而那个对象的类型也是指针，所以pphdr必须是指向指针的指针。

2．使用运算符“.”和“-&gt;”的成员选择表达式都是左 ...]]></description>
      <category>《零起步快速通透C语言》的检测点和习题解答</category>
      <author>站长</author>
      <pubDate>Mon, 09 Mar 2026 01:31:54 +0000</pubDate>
    </item>
    <item>
      <title>检测点11-2</title>
      <link>https://lizhongc.com/thread-713-1-1.html</link>
      <description><![CDATA[检测点11-2

以上，我们演示了如何将源文件stupublic.c打包为静态库。请使用相同的方法和步骤，将源文件studeop.c也打包为静态库，并用这两个静态库编译源文件c1101.c以生成可执行程序。
参考答案：
gcc -c stupublic.c -fexec-charset=gbk
gcc -c studeop.c -fexec-cha ...]]></description>
      <category>《零起步快速通透C语言》的检测点和习题解答</category>
      <author>站长</author>
      <pubDate>Mon, 09 Mar 2026 01:31:35 +0000</pubDate>
    </item>
    <item>
      <title>检测点11-1</title>
      <link>https://lizhongc.com/thread-712-1-1.html</link>
      <description><![CDATA[检测点11-1

以下结构类型的声明是否合法，为什么？
struct tag {int value; struct tag self;};
答：不合法。在成员列表的右花括号}之前，struct tag尚为不完整类型，不能声明不完整类型的对象。

 ...]]></description>
      <category>《零起步快速通透C语言》的检测点和习题解答</category>
      <author>站长</author>
      <pubDate>Mon, 09 Mar 2026 01:31:04 +0000</pubDate>
    </item>
    <item>
      <title>第10章习题</title>
      <link>https://lizhongc.com/thread-711-1-1.html</link>
      <description><![CDATA[第10章习题

1．给定以下声明：
struct t {int i; char c; short s;};
若int类型的大小是4，对齐是4；short类型的大小是2，对齐是2；该结构类型的大小和对齐是多少？会有填充吗？为什么？
答：该结果的大小是8，对齐为4，在成员c之后有1个字节的填充。原因：成员s需要对 ...]]></description>
      <category>《零起步快速通透C语言》的检测点和习题解答</category>
      <author>站长</author>
      <pubDate>Sun, 08 Mar 2026 13:59:38 +0000</pubDate>
    </item>
    <item>
      <title>检测点10-16</title>
      <link>https://lizhongc.com/thread-710-1-1.html</link>
      <description><![CDATA[检测点10-16

1．在以下代码片段中，scanf函数的返回值可能是 EOF，0，1，2 。
int n, p;
scanf (\&quot;%d%d\&quot;, &amp; n, &amp; p);

2．修改源文件c1010.c，使之除打印每个形状编号、名称和属性外，还打印周长和面积。三角形的面积可以使用海伦公式计算。
参考答案：
# include 
# in ...]]></description>
      <category>《零起步快速通透C语言》的检测点和习题解答</category>
      <author>站长</author>
      <pubDate>Sun, 08 Mar 2026 13:58:30 +0000</pubDate>
    </item>
    <item>
      <title>检测点10-15</title>
      <link>https://lizhongc.com/thread-709-1-1.html</link>
      <description><![CDATA[检测点10-15

1．什么是匿名结构和匿名联合？
答：如果一个结构或者联合包含了这样的成员：它没有名字；它是结构类型但只有成员列表而没有标记。那么，这个成员就是匿名结构（Anonymous Structure）。
同理，如果一个结构或者联合包含了这样的成员：它没有名字；它是联 ...]]></description>
      <category>《零起步快速通透C语言》的检测点和习题解答</category>
      <author>站长</author>
      <pubDate>Sun, 08 Mar 2026 13:57:31 +0000</pubDate>
    </item>
  </channel>
</rss>