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
Please explain this code to me
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="Eric Sosman, post: 2835600"] As it stands, it's a syntax error. With another set of parentheses void (* foo)() = (void(*)()) address; it would be a cast that converts an unsigned long value into a function pointer. (Specifically, a pointer to a function that takes a fixed but unspecified number of arguments of unspecified types and returns nothing.) Whether the conversion makes sense is beyond the scope of the C language. On a particular machine it may do something useful -- then again, it may not. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
Please explain this code to me
Top