|
|
Up |
|
|
  |
|
|
  |
|
|
  |
Author: Juha NieminenJuha Nieminen Date: Mar 3, 2008 13:56
arnuld@arch.i-did-not-set--mail-host-address--so-tickle-me wrote:
> Searchign at
> Google led me to several common questions asked in interviewers looking
> for C++ based programmers.
Many of these questions seem to ask for very specific terminology
which can be, IMO, somewhat irrelevant. I have programmed professionally
in C++ for many years (as a hobby for much longer) and I'm pretty
confident I'm a quite capable C++ coder, yet I probably wouldn't get
even half of these questions right.
> 1.) Why array index start at 0 (zero) ?
I can guess the reason for this, but is it really all that relevant to
know *why* array indexing starts from 0?
(Array indexing in C++ is directly inherited from array indexing in C,
and the origin for this form of indexing is most probably related to the
origins of C, which was little more than a "wrapper around asm", and in
most CPU architectures of the time (and even today) array indexing in
assembler is zero-based. However, why would this be relevant to know?)
> 3.) How is static variable stored in the memory ?
|
| Show full article (4.49Kb) |
| no comments |
|
  |
Author: yanlinlinyanlinlin Date: Mar 3, 2008 14:24
On Mar 4, 1:53Â am, arn...@arch.i-did-not-set--mail-host-address--so-
tickle-me wrote:
> After1 month from now, I will start giving job interviews. Searchign at
> Google led me to several common questions asked in interviewers looking
> for C++ based programmers. I have titled it "C++ interview questions - 1
> (technical)" as, after sometime, I will start another thread titled "C++
> interview questions (general)":
>
> I searched for the archives too but didn ot get answers:
>
> Â 1.) Why array index start at 0 (zero) ?
>
> I got these results but I can't know which one is right:
>
> http://groups.google.com/group/comp.lang.c/browse_thread/
> thread/73497fc628da3bf5/69c1e93404e86b5c?q=why+array+index+start+at+zero&lnÂk=ol& http://groups.google.com/group/comp.lang.c/browse_thread/thread/6aadd...http://groups......
> e0972682186dcdd9?lnk=gst&q=why+array+index+start+at+zero#e0972682186dcdd9
>
> Â 2.) What is RTTI and What is the difference between dynamic_cast and
> Â static_cast ? ...
|
| Show full article (4.19Kb) |
| no comments |
|
  |
Author: Victor BazarovVictor Bazarov Date: Mar 3, 2008 14:50
yanlinlin wrote:
> On Mar 4, 1:53 am, arn...@arch.i-did-not-set--mail-host-address--so-
> tickle-me wrote:
>> After1 month from now, I will start giving job interviews. Searchign
>> at
>> Google led me to several common questions asked in interviewers
>> looking
>> for C++ based programmers. I have titled it "C++ interview questions
>> - 1 (technical)" as, after sometime, I will start another thread
>> titled "C++
>> interview questions (general)":
>> [..]
>
> I think some of these questions are not so good for a job interview.
> And maybe this conversation is off-topic.
No specific set of questions is good for a job interview.
If you learn to answer *only* those, it can very easily be figured
out. Then you're toast.
|
| Show full article (1.96Kb) |
| no comments |
|
  |
Author: Eric JohnsonEric Johnson Date: Mar 3, 2008 14:55
To add to what the others have replied, I would recommend that rather
than trying to memorize the answers to these questions, get a good
book like "Effective C++" and read it from cover to cover. (Have
Stroustrup's "The C++ Programming Language" or another comprehensive
text handy to fill in details.) Keep your list of interview questions
in mind as you read the book. By the time you finish, you'll be much
better off than memorizing answers.
|
| |
| no comments |
|
  |
Author: SamSam Date: Mar 3, 2008 16:25
arnuld@arch.i-did-not-set--mail-host-address--so-tickle-me writes:
> After1 month from now, I will start giving job interviews. Searchign at
> Google led me to several common questions asked in interviewers looking
> for C++ based programmers. I have titled it "C++ interview questions - 1
> (technical)" as, after sometime, I will start another thread titled "C++
> interview questions (general)":
>
> I searched for the archives too but didn ot get answers:
>
> [snip long list of questions]
I don't understand something. Presumably you're going to be quizzing your
potential C++ job applicants on their knowledge.
Shouldn't that mean that you are supposed to know MORE than them, and that
you'd know the answers to these silly questions?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
|
| Show full article (0.95Kb) |
| no comments |
|
  |
Author: James KanzeJames Kanze Date: Mar 4, 2008 02:20
On Mar 3, 7:34 pm, "Victor Bazarov" comAcast.net> wrote:
> arn...@arch.i-did-not-set--mail-host-address--so-tickle-me wrote:
>> After1 month from now, I will start giving job interviews.
>> Searchign at Google led me to several common questions asked
>> in interviewers looking for C++ based programmers. I have
>> titled it "C++ interview questions - 1 (technical)" as,
>> after sometime, I will start another thread titled "C++
>> interview questions (general)":
>> I searched for the archives too but didn ot get answers:
>> 1.) Why array index start at 0 (zero) ?
>> I got these results but I can't know which one is right:
|
| Show full article (11.33Kb) |
| no comments |
|
  |
Author: James KanzeJames Kanze Date: Mar 4, 2008 02:25
On Mar 3, 11:50 pm, "Victor Bazarov" comAcast.net> wrote:
> yanlinlin wrote:
>> On Mar 4, 1:53 am, arn...@arch.i-did-not-set--mail-host-address--so-
>> tickle-me wrote:
>>> After1 month from now, I will start giving job interviews.
>>> Searchign at Google led me to several common questions
>>> asked in interviewers looking
>>> for C++ based programmers. I have titled it "C++ interview questions
>>> - 1 (technical)" as, after sometime, I will start another thread
>>> titled "C++
>>> interview questions (general)":
>>> [..]
>> I think some of these questions are not so good for a job
>> interview. And maybe this conversation is off-topic.
> No specific set of questions is good for a job interview.
|
| Show full article (1.75Kb) |
| no comments |
|
  |
|
|
  |
Author: dizzydizzy Date: Mar 4, 2008 03:24
James Kanze wrote:
> Or just use the template, period. If you call a template
> function, it's going to be instantiated. If you definie a
> variable with a class template type, the template is going to be
> instantiated.
I was thinking going even further with this, what about using it in a
context that does not call any function or declare any variable? Such as
use as part of the expression given to the sizeof operator :)
--
Dizzy
|
| |
| no comments |
|
|
|
|