LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 03-17-2006, 08:12 AM   #1
yashwantpinge
LQ Newbie
 
Registered: Nov 2005
Posts: 17

Rep: Reputation: 0
heap or stack


hello,

Suppose,I have declared a global variable in C++.
Though, where it is allocated heap or stack.
 
Old 03-17-2006, 08:25 AM   #2
Flesym
Member
 
Registered: Aug 2005
Location: Germany
Distribution: Ubuntu, Debian
Posts: 189

Rep: Reputation: 31
Usually neither stack, nor heap. Typically they are stored in another area called the Data Segment.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference b/t Kernel stack and User stack hazzyb Linux - Software 2 09-29-2008 08:40 PM
Is array allocated on heap set to zero? nibbler Programming 3 12-14-2005 03:55 AM
increasing heap size podollb Linux - Software 3 03-07-2005 12:42 AM
dumping and browsing heap with gdb Hano Programming 0 07-15-2004 11:55 PM
Modifying the heap available to a process exitsfunnel Linux - Software 0 12-10-2003 10:20 PM


All times are GMT -5. The time now is 08:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration