Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
Undefined behavior?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="The Real OS/2 Guy, post: 1693531"] Wrong. It occures undefined behavior when you forget to include stdlib.h. You hides the diagnostic saying that you tries to convert int to a pointer throu casting the value the compiler things it were int to a pointer. The same bug as above - resulting in undefined behavior. That's fine - but lets q hold an indetermined value (the pointer in it points to somewhere but not to an address guilty for your program) after free. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
Undefined behavior?
Top