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
AMD opteron 64
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="E. Robert Tisdale, post: 1690960"] Thanks Dan. I knew you could do it. The only problem is that your example is for a C++ compiler (Turbo C++) which is obsolete, which never fully complied with the ANSI/ISO C89 standard much less the ANSI/ISO C99 standard and which was designed to emit code for Intel 80286 processors. There are almost no C programmers who actually consider it a viable target for their applications -- nobody cares. The point is that 1. a good C compiler will warn the programmer if malloc has not been declared properly and 2. the code will probably execute properly even if malloc has not been declared properly. Omitting the type cast for the result returned by malloc does *nothing* for the programmer except to produce a cryptic and, possibly, misleading diagnostic when malloc has not been declared properly. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
AMD opteron 64
Top