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
A memory question
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Mark B, post: 2436708"] I'm having the same problem... but my code doesn't have 42 lines so I'm not sure what's wrong! #include <stdio.h> void main(void) { char buf[31457280] = "hello world"; puts(buf); return 0; } Hmm... maybe they meant the problem is on lines 4 AND 2... void main(void) - just like they have it in my textbook, looks good. char buf[31457280]; - more than enough space to hold that little string. Oh well, I guess I'll blame my compiler... it is a pig ;) [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
A memory question
Top