Computer Hardware

Moderators: None (Apply to moderate this forum)
Number of threads: 712
Number of posts: 1426

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
general computer science questions about memory Posted by Captain Crunch on 15 Apr 2010 at 9:51 PM
I have some questions that I have always wanted to know the answer to.

1. I want to know when I declare in a program ( for instance in C programming) :

int a;


How does the CPU find and determine where to allocate space for variables?

2. If I print the variable out - I get some previous number. So I wonder if the CPU allocated space where another value was - that wasn't important in memory. Where did this other value come from?

3. When you boot up a computer, the first thing that executed is the boot strap code in the CPU solid state instructions set, THEN that starts up the resident OS. Which means that boot strap is in a isolated memory of the CPU, RIGHT??

If I am wrong anywhere above in my computer science theory- PLEASE correct me.

Thanks







K.J.Williams



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.