Re: c interview
- From: Christopher Benson-Manica <ataru@xxxxxxxxxxxxxxxxxxx>
- Date: Wed, 2 Aug 2006 01:16:52 +0000 (UTC)
gkumar007@xxxxxxxxx wrote:
See if these puzzles are of any help to you:
http://www.gowrikumar.com/c/index.html
IMHO, most of these questions are reflective of the silly "gotcha"
questions that often pass as interview questions - not *your* fault,
of course. However, regular readers of comp.lang.c will find a number of
things to nitpick about that you (and many employers) have either
failed to account for or are simply unaware of. To cite possibly the
most obvious example, the return value of malloc() is always cast in
your sample questions; a quick Google search of this group's archives
will reveal that the experts' consensus is that this is a bad idea, an
opinion shared by the FAQ:
http://c-faq.com/malloc/cast.html
http://c-faq.com/malloc/mallocnocast.html
I believe a thorough reading of the FAQ will help you improve both
your quiz and your practical knowledge of C.
--
C. Benson Manica | I *should* know what I'm talking about - if I
cbmanica(at)gmail.com | don't, I need to know. Flames welcome.
.
- Follow-Ups:
- Re: c interview
- From: J. J. Farrell
- Re: c interview
- From: gkumar007
- Re: c interview
- References:
- c interview
- From: dis_is_eagle
- Re: c interview
- From: gkumar007
- c interview
- Prev by Date: Re: The illusion of "portability"
- Next by Date: Re: Casting a generic or void pointer to point to a struct...
- Previous by thread: Re: c interview
- Next by thread: Re: c interview
- Index(es):
Relevant Pages
|