Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


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

Rep: Reputation: 0
heap or stack


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
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.


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 > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:14 PM.

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