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 16 1734
On 2006-04-05, shishir <sh****************@gmail.com> wrote: 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?
shishir wrote: 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.
"shishir" <sh****************@gmail.com> wrote: 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
Where can I find the FAQ?
Thanks!
"Richard Bos" <rl*@hoekstra-uitgeverij.nl> дÈëÏûÏ¢ÐÂÎÅ
:44****************@news.xs4all.nl... "shishir" <sh****************@gmail.com> wrote:
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
"Chang Feng" <cy****@metarnet.com> writes: Where can I find the FAQ? Thanks!
A Google search for "comp.lang.c FAQ" or "C FAQ" would have found
<http://www.c-faq.com/>.
Please also read <http://www.caliburn.nl/topposting.html> and
<http://clc-wiki.net/wiki/Introduction_to_comp.lang.c>.
--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
On 2006-04-05, Richard Bos <rl*@hoekstra-uitgeverij.nl> wrote: "shishir" <sh****************@gmail.com> wrote:
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
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?
--
Aspirat primo Fortuna labori.
-- Virgil, and all good teachers
Richard G. Riley wrote: To the OP
ITYM Original Poster
I thought acronyms were frowned upon here?
It looks like you didn't.
--
pete
On 2006-04-09, pete <pf*****@mindspring.com> wrote: Richard G. Riley wrote:
To the OP
ITYM Original Poster
I thought acronyms were frowned upon here?
It looks like you didn't.
Fair point ... ( I didnt know an acronym for that...).
On Sun, 9 Apr 2006 14:48:11 +0200, in comp.lang.c , "Richard G. Riley"
<rg****@gmail.com> wrote: On 2006-04-05, Richard Bos <rl*@hoekstra-uitgeverij.nl> wrote: "shishir" <sh****************@gmail.com> wrote:
Clearly the interviewer had read the FAQ, and you haven't.
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
--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
On Sun, 9 Apr 2006 15:06:33 +0200, in comp.lang.c , "Richard G. Riley"
<rg****@gmail.com> wrote: On 2006-04-09, pete <pf*****@mindspring.com> wrote: Richard G. Riley wrote:
To the OP
ITYM Original Poster
I thought acronyms were frowned upon here?
It looks like you didn't.
Fair point ... ( I didnt know an acronym for that...).
YGMBTRG.
:-)
Mark McIntyre
--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
Mark McIntyre wrote: "Richard G. Riley" <rg****@gmail.com> wrote:
.... 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.
In addition, what is HTH and HAND? I thought acronyms were frowned upon here?
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/>
CBFalconer wrote: Mark McIntyre wrote: "Richard G. Riley" <rg****@gmail.com> wrote: ... 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.
In addition, what is HTH and HAND? I thought acronyms were frowned upon here? 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.
"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.
In article <44***********************@news.xs4all.nl>,
Skarmander <in*****@dontmailme.com> wrote: "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.
--
"No one has the right to destroy another person's belief by
demanding empirical evidence." -- Ann Landers
Skarmander wrote:
.... 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/>
CBFalconer <cb********@yahoo.com> wrote: "Richard G. Riley" <rg****@gmail.com> wrote:
In addition, what is HTH and HAND? I thought acronyms were frowned upon here?
Hope That Helps. Have A Nice Day.
Not necessarily in the case Mr. Riley refers to.
HTH - HAND!
Richard
On Sun, 09 Apr 2006 18:19:05 -0400, in comp.lang.c , CBFalconer
<cb********@yahoo.com> wrote: Mark McIntyre wrote: "Richard G. Riley" <rg****@gmail.com> wrote: ... 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.
In addition, what is HTH and HAND? I thought acronyms were frowned upon here?
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'.
Those aren't acronyms.
Acronyms are also pretty silly when their primary purpose is to confuse the reader.
TAANSTAFL.
:-)
Mark McIntyre
--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: jonathan |
last post by:
everyone,
I'd like to be able to debug php scripts on the command line, going
through the
browser. In other words, set up the debugger to listen and then type
in a url and have the code stop...
|
by: wenjie wang |
last post by:
Greetings,
I'd like to know is there any situation where your program could crash
without reaching the breakpoint which you set at the beginning of
main().
|
by: python |
last post by:
hello and thanks for reading this,
i have been a dos/windows user using some form of the basic language for 30 years now.
i own and run a small programming company and there is one feature that...
|
by: Ioannis Hadjichambis |
last post by:
I am trying to debug my program using the DDD debugger. I have also
downloaded a manual for the debugger but I cannot RUN my
program in the debugger. I use the -g flag when compiling. I then write...
|
by: Piet Van Vlierberghe |
last post by:
We are a software firm developing in C++ and we recently made the step from
Microsoft Visual Studio 6 to Microsoft Visual Studio .NET 2003. We are really
excited about the quality of the compiler;...
| |
by: bob lambert |
last post by:
Help,
I have vb.net std 2002, have a windows forms app and am
debugging code behind it. I think I am viewing the
source, I set the project to debug (as opposed to
release), I start the...
|
by: R. Bernstein |
last post by:
Okay, a bit of an exaggeration.
Recently, I've been using Python more seriously, and in using the
debugger I think one of the first things I noticed was that there is
no "restart" ("R" in...
|
by: Ilkka |
last post by:
I have created an C++ application with Windows Forms, ADO and SQL server
2005. Now I need to change something and started debugging the code. Then
suddenly I receive an error.
"An unhandled...
|
by: xarzu |
last post by:
Getting a C# program with a manifest file to run in the debugger
----------------------------------------------------------------
How do I declare a manifest file in the Visual Studio IDE for C#...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |