问题 单项选择题

程序中对fun函数有如下说明   void *fun( );  此说明的含义是:()

A、fun了数无返回值

B、fun函数的返回值可以是任意的数据类型

C、fun函数的返回值是无值型的指针类型

D、指针fun指向一个函数,该函数无返回值

答案

参考答案:D

解析:

返回指针的函数定义为:返回值类型,函数名( ),而指向函数的指针定义为:返回值类型(*变量名)( )。本题中函数fun返回一个无类型的指针。

阅读理解
阅读下面短文,选择最佳答案。
     Students learn their lessons in class. In class teachers teach them. Students sit in the classroom listening
to the teacher. This is a way of learning. Is this the only way for students to learn something? Of course not.
There is another way to learn. It is that students can teach themselves. For example, if you can't remember
something when you are doing your homework, you can look at your book to find the answer. This is a way
to teach yourself. And it is not a difficult thing. We can do this at any place and at any time.
     How do you teach yourself? The first thing you must do is reading. Read something you are interested in,
or you have to read. The second is that you must ask yourself questions. The question is something you don't
understand, or you want to know more about. You can write down these questions. A clever student is usually
good at questions. The third is to answer the question yourself by thinking hard, by reading the text or other
books, and sometimes by asking other people. This is the way of teaching yourself. And you must do this all
by yourself. If you keep doing like this for a long time, you are sure to succeed (成功) in your study.
1.Listening to the teacher is ______ for the students to learn something.
[ ]
A.not a way
B.the best way
C.not the only way
2.Which of the following is RIGHT?
[ ]
A.A student can teach himself but he doesn't like to.
B.It is a bad way to learn from the teacher.
C.A student can learn to teach himself if he wants to.
3.In teaching yourself, the first thing you must do is ______.
[ ]
A.asking
B.answering
C.reading
4.A clever student usually likes ______.
[ ]
A.asking questions
B.finding answers
C.answering questions
5.If you want to succeed, you'd better learn ______.
[ ]
A.how to teach yourself
B.how to teach others
C.to read and write carefully
选择题