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
doubt in USING POINTERS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Gabriel Dos Reis, post: 1679166"] | | > | > | But if I write: | > | | > | int *p=example(10).coord; | > | | > | p is indeterminate here right? (since the instance of | > | struct foo isn't with us anymore) | > | > p becomes a dangling pointer, yes. | | Initializing or assigning p the address of coord doesn't seem to be the case | on gcc(that is, it doesn't work). If with -std=c99, you still see the same behaviour, then that is a bug in the GCC/gcc compiler. -- Gaby [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
doubt in USING POINTERS
Top