Re: low-level question
jesso wrote:
> char buf[ 4 ];
>
> strcpy( buf, "AAAA" );
Here, you are copying 5 bytes in 4 byte space (remeber the terminating
null byte). So, you may have *any* unexpected behaviour. For instance,
printing a zero. But it could have been an expeption, a segment
violation, or your computer connecting to some web porn site.
.
Relevant Pages
- Re: [crash, bisected] Re: [PATCH 3/4] x86_64: Fold pda into per cpu area
... to initialize the kernel segments. ... The zero-based PDA mechanism requires the introduction of a new ELF ... Why are we doing a zero based pda? ... offset in the segment register to allow for everything to work as ... (Linux-Kernel) - Re: Storage of Variables
... code at entry to a function zero out the stack. ... In C, there is really no such concept as a heap, though you could ... the bss segment. ... And to initialize the data segment, ... (comp.os.linux.misc) - Complex analysis with constant.
... Now u_x and u_y are the x and y components of the vector grad u, ... So the fact that u_x and u_y are always zero means that grad u ... consisting of a finite number of line segments joined end to end, ... u is constant along any line segment lying entirely in D; ... (sci.math) - Re: Is a line segment composed of points?
... piece if of zero length, then it is not a result of cutting at ... You end up with an infinite number of pieces, ... segment is a matter of how you define line segment. ... first segment is not reached by a division process. ... (sci.math) - Re: Query on distance between 2D line segments
... second segment be U2. ... U1 rotated counterclockwise by A radians. ... close to the true value of zero. ... center point, unit-length direction, and extent. ... (comp.graphics.algorithms) |
|