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
C99 Question
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Martin Ambuhl, post: 1694311"] Of course you don't use a cast there. It is so simple to find other solutions that it is hard to believe this is an honest question. int *i = malloc(sizeof(int)); or [better] int *i = malloc(sizeof *i); And check that i is not NULL. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
C99 Question
Top