Re: low-level question
- From: "jesso" <jesso1607@xxxxxxxxxx>
- Date: 30 Aug 2005 06:46:57 -0700
>>From the ad:
Still I wonder what they are looking for with:
"How could you prevent this outcome without changing the code?"
This is an
"
ASM/C Developer/Analyst - Linux platform
Developer/analyst with strong skills in assembler and C on Linux.
"
=============
QUIZ QUESTION:
If you can answer this question intelligently, you are guaranteed an
interview (please remember to attach your resume):
Why does the following program output a 0? Explain in detail. How
could you prevent this outcome without changing the code?
#include <stdio.h>
#include <string.h>
int main(int argc, char *argv[])
{
int i = 1;
char buf[4];
strcpy(buf, "AAAA");
printf("%d\n", i);
return 0;
}
.
- Follow-Ups:
- Re: low-level question
- From: Mark McIntyre
- Re: low-level question
- References:
- low-level question
- From: jesso
- Re: low-level question
- From: Gordon Burditt
- Re: low-level question
- From: jesso
- low-level question
- Prev by Date: Re: trouble with double free
- Next by Date: Re: How to free dynamically allocated array?
- Previous by thread: Re: low-level question
- Next by thread: Re: low-level question
- Index(es):
Relevant Pages
|