Re: C Interview Questions



dhruvaraj@xxxxxxxxx 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)
.