Thread: Confused about Memory

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    Last edited by whiteflags; 06-17-2006 at 11:49 AM.

  2. #2
    Registered User
    Join Date
    Apr 2005
    Posts
    76
    ahhh i see...and ive looked up a defintion... and they are synonymes right?

    Stack: Static;
    Heap: Dynamic;

    And somethin about like the stack has variable addresses right?
    And I don't know about the heap...

  3. #3
    Registered User
    Join Date
    Apr 2006
    Posts
    2,149
    Quote Originally Posted by gL_nEwB
    ahhh i see...and ive looked up a defintion... and they are synonymes right?

    Stack: Static;
    No, becouse static is a key word in C/++. It has many different uses.

    The concept is correct, just don't assume that if somebody is talking about something static that it means "on the stack."
    It is too clear and so it is hard to see.
    A dunce once searched for fire with a lighted lantern.
    Had he known what fire was,
    He could have cooked his rice much sooner.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problems with shared memory shmdt() shmctl()
    By Jcarroll in forum C Programming
    Replies: 1
    Last Post: 03-17-2009, 10:48 PM
  2. Replies: 4
    Last Post: 01-13-2008, 02:14 AM
  3. Copying memory, pointers and the like.
    By psychopath in forum C++ Programming
    Replies: 34
    Last Post: 12-12-2006, 01:37 PM
  4. Locating A Segmentation Fault
    By Stack Overflow in forum C Programming
    Replies: 12
    Last Post: 12-14-2004, 01:33 PM
  5. Memory leak trackers
    By Darkness in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 11-30-2004, 02:03 PM