Re: Help in c pointers



CBFalconer wrote:
[...]
Neither p nor msg points anywhere. Trying to dereference either of
them results in undefined behavior. Undefined behaviour includes
"working". It also includes launching flying pigs.

Can demons come out of a flying pig's nose?

--
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody | www.hvcomputer.com | |
| kenbrody/at\spamcop.net | www.fptech.com | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+
Don't e-mail me at: <mailto:ThisIsASpamTrap@xxxxxxxxx>

.



Relevant Pages

  • Re: sprintf
    ... There would be no standard if if demons flew from my nose. ... Undefined behavior gives the implementor license to not catch ... you gave it an instruction to execute. ...
    (comp.lang.c)
  • Re: unexpected result
    ... Nasal demons presumably aren't a real possibility, ... If demons do fly out of your nose when you ... And there are real-world instances of undefined behavior that can ... your programs will misbehave. ...
    (comp.lang.c)
  • Re: [OT] what is top-post?
    ... Shuo Xiang wrote: ... Top posting here may cause undefined behavior. ... You wouldn't want demons ... to fly out of your nose, ...
    (comp.lang.c)
  • Re: Need experts suggestion
    ... Undefined behavior, by the way, does also not mean "anything can ... Even if the International Standard does not forbid a certain ... get a headache every time I read about those famous 'nasal demons'. ...
    (comp.lang.c)
  • Re: Order of execution
    ... They all invoke undefined behavior, ... And causing demons to fly out your nose is a perfectly valid way to ... as far as the standard is concerned. ... the compiler writer simply allowed the undefined behavior to be ...
    (comp.lang.c)