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
C Programming Language 2nd Ed, Exercise 1.9 and 1.12, Solution suggestion.
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="glen herrmannsfeldt, post: 5164432"] (snip) Writing in both C and Java, I might be a little more sensitive to the differences between them. Since C's main is supposed to have arguments (usually argc and argv) but it is usual not to put them in if I am not using them, I prefer the () form, with the (void) form when there are never any arguments. That is unlike Java, where the argument signatures (I think that is what they call them) must match. To allow for varargs, most calling conventions used with C allow for fewer arguments. As well as I know it, strictly that is only allowed for actual varargs functions. Different calling conventions could be used for varargs and non-varargs, but usually aren't. I haven't looked yet how Java does System.out.format(), though I use it more and more in my Java programs. -- glen [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
C Programming Language 2nd Ed, Exercise 1.9 and 1.12, Solution suggestion.
Top