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
Weird usage of printf/scanf? Why do they work?
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="Jens Thoms Toerring, post: 3936129"] Perhaps there's a define like this somewhere well-hidden #define printf(a,b,c,d) printf("%d%s%d%s",a,b,c,d) and this is a joke by the student? Otherwise I would expect gcc to emit a warning about a conversion from an int to a pointer for the first argument of printf() (at least my version of gcc complains about that even without any warning options)... Regards, Jens [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
Weird usage of printf/scanf? Why do they work?
Top