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
Help with printing a bit pattern with printf and %x
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="Stephen Sprunk, post: 5088528"] x86 normally passes all arguments on the stack regardless of type, so bad code often "works". In contrast, x86-64 passes the first several arguments in registers of the appropriate type, so the same bad code "doesn't work" because the callee is looking in the wrong place. Since passing arguments of the wrong type invokes undefined behavior, both are perfectly valid results. S [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
Help with printing a bit pattern with printf and %x
Top