C面试问题 [英] C Interview Questions

查看:60
本文介绍了C面试问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

面试问题:
http:// www。 dhruvaraj.com/interview/cncpp/index.html

在线书籍 http://www.dhruvaraj.com

解决方案



< dh *******@gmail.com在留言中写道

news:11 ********************* @ m7g2000cwm.googlegrou ps .com ...


面试问题:
http://www.dhruvaraj.com/interview/cncpp/index.html

在线图书 http://www.dhruvaraj.com



必须记住从我的列表中删除...


dh **** *** @ gmail.com 说:


面试问题:
http://www.dhruvaraj.com/interview/cncpp/index.html



" C和C ++基本的奎斯坦人并没有激发很多信心。不过,让我们看看:


1. math.h中定义的ceil(X)的功能是什么?


由于ceil没有在math.h中定义,这是一个很难回答的问题!


2.你怎么说有向图是非循环的


与C有什么关系?


5.在string.h中没有定义以下哪些[函数]?


所有这些,很明显。


6.。在ANSI C中识别函数调用fflush()的正确参数:


没有一个候选答案是唯一正确的。三个是错的,并且

标准输出只是fflush的一个/正确的参数。


7.以下哪个将定义类型NODE是一个链接

列表中的节点?


没有一个候选答案是正确的。


10.看看代码:...输出是什么?


由于代码不能编译,问题没有实际意义。


....等等等等。这些只是编辑后的亮点。


在线书籍 http://www.dhruvaraj.com



谢谢。我已经通知了Prentice Hall。


-

Richard Heathfield

Usenet是一个奇怪的地方 - dmr 29/7/1999
http://www.cpax.org.uk

电子邮件:rjh在上面的域名(但显然放弃了www)


Richard Heathfield写道:
< blockquote class =post_quotes> dh*******@gmail.com 说:


6.。在ANSI C中识别函数调用fflush()的正确参数:


没有一个候选答案是唯一正确的。三个是错的,并且

stdout只是fflush的/ one /正确参数。



理查德,你能告诉我为什么这三个都错了。我认为stdin,stdout,

stderr其中所有宏为FILE *为3个流。现在标准确实对缓冲流说了

,它们是不是缓冲的吗?


此外标准说你可以传递NULL来fflush刷新所有打开的流。


谢谢


Adrian


Interview Questions :
http://www.dhruvaraj.com/interview/cncpp/index.html
online books http://www.dhruvaraj.com

解决方案


<dh*******@gmail.comwrote in message
news:11*********************@m7g2000cwm.googlegrou ps.com...

Interview Questions :
http://www.dhruvaraj.com/interview/cncpp/index.html
online books http://www.dhruvaraj.com

Must remember to cross those off my list...


dh*******@gmail.com said:

Interview Questions :
http://www.dhruvaraj.com/interview/cncpp/index.html

"C and C++ Basic Questians" didn''t inspire a lot of confidence. Still, let''s
see:

1. What is the function of ceil(X) defined in math.h do?

Since ceil is not defined in math.h, this is a tricky one to answer!

2. When do you say that a digraph is acyclic

What has this to do with C?

5. Which of the Following [functions] is not defined in string.h?

All of them, obviously.

6. .Identify the correct argument for the function call fflush() in ANSI C:

None of the candidate answers is uniquely correct. Three are wrong, and
stdout is only /one/ correct argument for fflush.

7. Which of the Following will define a type NODE that is a node in a Linked
list?

None of the candidate answers is correct.

10. Look at the Code: ... What will be the output?

Since the code won''t compile, the question is moot.

....and so on and so on. These are really just edited lowlights.

online books http://www.dhruvaraj.com

Thanks. I''ve notified Prentice Hall.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)


Richard Heathfield wrote:

dh*******@gmail.com said:

6. .Identify the correct argument for the function call fflush() in ANSI C:

None of the candidate answers is uniquely correct. Three are wrong, and
stdout is only /one/ correct argument for fflush.

Richard, could you tell me why all three are wrong. I thought stdin, stdout,
stderr where all macros to FILE * for the 3 streams. Now the standard does say
for buffered streams, are they not buffered?

Also the standard says you can pass NULL to fflush to flush all open streams.

Thanks

Adrian


这篇关于C面试问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆