Wrox Programmer Forums
|
BOOK: Ivor Horton's Beginning Visual C++ 2008 ISBN: 978-0-470-22590-5
This is the forum to discuss the Wrox book Ivor Horton's Beginning Visual C++ 2008 by Ivor Horton; ISBN: 9780470225905
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Ivor Horton's Beginning Visual C++ 2008 ISBN: 978-0-470-22590-5 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 24th, 2009, 12:13 PM
Authorized User
 
Join Date: May 2009
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Default memory allocation

Hi, when I write a code like follows;

int x=5;
is memory for this x allocated during compilation or execution.
 
Old May 28th, 2009, 03:37 PM
Registered User
 
Join Date: May 2009
Posts: 5
Thanks: 0
Thanked 3 Times in 3 Posts
Default memory allocation

The compiler creates files which reside on disk. At run time, a loader moves your compiled program from disk to memory. The memory is reserved for your exclusive use when the module containing your variable gets loaded.

Ken
The Following User Says Thank You to KenStewart For This Useful Post:
sudhanshu631 (May 29th, 2009)





Similar Threads
Thread Thread Starter Forum Replies Last Post
memory allocation for a dataset kalyanykk ASP.NET 2.0 Basics 3 August 12th, 2008 02:24 AM
VBA memory allocation ychou006 Excel VBA 1 December 21st, 2005 01:03 PM
local memory allocation limit ychou006 Excel VBA 1 August 8th, 2005 07:59 AM
Out of memory : simplyAns All Other Wrox Books 0 November 9th, 2004 08:56 AM
Memory linguva Access 2 December 19th, 2003 07:22 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.