Debugger not reaching the first line of code

S

shishir

hi,
I was asked this peculiar question in an interview - There's a one line
C code ( the simplest you can assume , a printf statement inside the
main) and a breakpoint has been set at that very first line. The code
compiles and runs but the debugger never reaches that breakpoint. What
could be the possible reason/bug/issue behind this. Does anyone have
any clue to this.
Thanks,
Shishir
 
B

Ben C

hi,
I was asked this peculiar question in an interview - There's a one line
C code ( the simplest you can assume , a printf statement inside the
main) and a breakpoint has been set at that very first line. The code
compiles and runs but the debugger never reaches that breakpoint. What
could be the possible reason/bug/issue behind this. Does anyone have
any clue to this.
Thanks,

An undefined global initializer, maybe?
 
?

=?ISO-8859-1?Q?=22Nils_O=2E_Sel=E5sdal=22?=

shishir said:
hi,
I was asked this peculiar question in an interview - There's a one line
C code ( the simplest you can assume , a printf statement inside the
main) and a breakpoint has been set at that very first line. The code
compiles and runs but the debugger never reaches that breakpoint. What
could be the possible reason/bug/issue behind this. Does anyone have
any clue to this.
Could be a user bug.


Provide more info directed in the proper channel for your particular
platform/compiler/debugger for more answers.
 
R

Richard Bos

shishir said:
I was asked this peculiar question in an interview - There's a one line
C code ( the simplest you can assume , a printf statement inside the
main) and a breakpoint has been set at that very first line. The code
compiles and runs but the debugger never reaches that breakpoint. What
could be the possible reason/bug/issue behind this. Does anyone have
any clue to this.

Clearly the interviewer had read the FAQ, and you haven't.

HTH; HAND.

Richard
 
R

Richard G. Riley

Clearly the interviewer had read the FAQ, and you haven't.

HTH; HAND.

Richard

Great "advice". And would be much more helpful had you provided a link or an
excerpt from the FAQ to help. Or was your only reason to reply to
belittle the OP who may, or may not, have been aware of the FAQ?

To the OP : dig around here if you have web access - http://c-faq.com/

In addition, what is HTH and HAND? I thought acronyms were frowned
upon here?
 
M

Mark McIntyre

Great "advice". And would be much more helpful had you provided a link or an
excerpt from the FAQ to help.

About every fourth post here, not to mention the regular 'welcome'
message, mentions it. And frankly anyone who can't use google is
probably not going to make a programmer anyway.
In addition, what is HTH and HAND? I thought acronyms were frowned
upon here?

What on earth gave you that idea?
Mark McIntyre
 
C

CBFalconer

Mark said:
.... snip ...

About every fourth post here, not to mention the regular 'welcome'
message, mentions it. And frankly anyone who can't use google is
probably not going to make a programmer anyway.


What on earth gave you that idea?

The fact that we usually yell at imbeciles who insist on using
confusing and silly abbreviations such as 'u', 'ur' and 'plz'.
Acronyms are also pretty silly when their primary purpose is to
confuse the reader. Maybe you should join the Fraternal Order of
Programmers Accustomed to Clarity in Code and Prose. FOPACCAP.

Hope That Helps. Have A Nice Day.

--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
More details at: <http://cfaj.freeshell.org/google/>
Also see <http://www.safalra.com/special/googlegroupsreply/>
 
S

Skarmander

CBFalconer said:
The fact that we usually yell at imbeciles who insist on using
confusing and silly abbreviations such as 'u', 'ur' and 'plz'.
Acronyms are also pretty silly when their primary purpose is to
confuse the reader. Maybe you should join the Fraternal Order of
Programmers Accustomed to Clarity in Code and Prose. FOPACCAP.

Hope That Helps. Have A Nice Day.

"HTH. HAND." is an idiom. I doubt you could call its primary purpose
confusion. It may not be readily understood in all cases, but in this case
the speaker clearly expected it to be, if perhaps not necessarily by the
addressee.

The situation for "u", "ur" and "plz" is similar, except that in these cases
the idioms are considered a mark of unprofessionality and/or immaturity.
That their meaning is readily accessible even to the unfamiliar is not
disputed by anyone. Of course, this entire discussion itself is a rather
immature clash of egos with no real goal of a productive consensus, but as
they say, "YMMV".

What would Usenet come to if you could no longer use such eloquent
expressions as "TANSTAAFL" and "YKYBHTLW"? That they are unfamiliar to some
should not hold us back; the acronym dictionaries are only a few lookups away.

S.
 
W

Walter Roberson

"HTH. HAND." is an idiom. I doubt you could call its primary purpose
confusion. It may not be readily understood in all cases, but in this case
the speaker clearly expected it to be, if perhaps not necessarily by the
addressee.
The situation for "u", "ur" and "plz" is similar, except that in these cases
the idioms are considered a mark of unprofessionality and/or immaturity.

*personally*, I consider "HTH. HAND." to -usually- be marks of
unprofessionality and/or immaturity, as they are often written in
contexts where they would likely be interpreted as being dismissive.
 
C

CBFalconer

Skarmander said:
.... snip ...

The situation for "u", "ur" and "plz" is similar, except that in
these cases the idioms are considered a mark of unprofessionality
and/or immaturity. That their meaning is readily accessible even
to the unfamiliar is not disputed by anyone. Of course, this
entire discussion itself is a rather immature clash of egos with
no real goal of a productive consensus, but as they say, "YMMV".

No, they are not similar. They depend on prononciation, and many
participants here have only some writing contact with English, so
prononciation is meaningless to them, and the abbreviations are
meaningless. Besides marking the user as immature they also show
him/her to be careless and imprecise.

--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
More details at: <http://cfaj.freeshell.org/google/>
Also see <http://www.safalra.com/special/googlegroupsreply/>
 
M

Mark McIntyre

The fact that we usually yell at imbeciles who insist on using
confusing and silly abbreviations such as 'u', 'ur' and 'plz'.

Those aren't acronyms.
Acronyms are also pretty silly when their primary purpose is to
confuse the reader.

TAANSTAFL.

:)
Mark McIntyre
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,176
Messages
2,570,950
Members
47,503
Latest member
supremedee

Latest Threads

Top