🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c.moderated
Article #2243

Re: Good C Interview questions?

#2243
From: Eric Goebelbecker
Date: Tue, 12 Mar 1996 01:27
29 lines
1939 bytes
John Carr wrote:
> 
(snip discussion on reverse array notation)
> 
> Q: Which has higher precedence, + or |?
> A: I don't remember, so I use parentheses.
> 
> I really didn't remember and I've been using C for more than 10 years.
> When I need to know I take 30 seconds to write a C program to see what the
> compiler does, or read the standard, or look at gcc's parser.  (Sun's C
> compiler says + is higher than |.)  Maybe that would be a good interview
> question: ask what the precedence is and if the answer is "I don't know"
> follow up by asking: "show me how you would find out".
> 
> --
>     John Carr (jfc@mit.edu)

I agree completely! Nobody can remember everything, but knowing how to
answer your own questions is probably one of the most important skills a
prospective employee can have. (One of the others is knowing what to
ask.)
-- 
 -----------------------------------------------------------
| Eric Goebelbecker    |                                    |
| Market Vision        |   You are a strange,               |
| 40 Rector Street     |              sick, little man."    |
| New York, NY. 10006  |                                    | 
| phone: (212)306-0355 |                 - Buzz Lightyear   |
 -----------------------------------------------------------
Technical Details
Message-ID: <4i2jtp$8ge@solutions.solon.com>
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
References: <4h2s1m$l8@solutions.solon.com> <4h75c1$4nh@solutions.solon.com> <4hqebv$1k1@solutions.solon.com> <4hv081$jdt@solutions.solon.com> <4hvvlg$op0@solutions.solon.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
From: Eric Goebelbecker <egoebel@mvision.com>
Newsgroups: comp.lang.c.moderated
Subject: Re: Good C Interview questions?
Date: 11 Mar 1996 19:27:21 -0600
Organization: Market Vision
Sender: clc@solutions.solon.com
Approved: clc@solutions.solon.com
Message-ID: <4i2jtp$8ge@solutions.solon.com>
References: <4h2s1m$l8@solutions.solon.com> <4h75c1$4nh@solutions.solon.com> <4hqebv$1k1@solutions.solon.com> <4hv081$jdt@solutions.solon.com> <4hvvlg$op0@solutions.solon.com>
Reply-To: news@mvision.com
NNTP-Posting-Host: solutions.solon.com
X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.3 sun4m)