Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7781345
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T19:11:55+00:00 2026-06-01T19:11:55+00:00

All questions I found on this site refer only to Stack vs Heap and

  • 0

All questions I found on this site refer only to Stack vs Heap and don’t
discuss Frame so here is my question. Don’t get the difference between all three.

What I know:

Frame:
A frame is like a blackboard for instance variables of a function.
While the function is running all instance variables are stored
inside the frame of that function. When a function is called its
frame is created on top of the stack.

Stack:
A stack can be visualized as a physical stack of frames.
When a method (or function) is executed, it allocates a
chunk of memory from the stack.

Heap:
All object pointers live on the heap.

Stack and Frame is clear (I think) but am I right with my Heap statement?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T19:11:58+00:00Added an answer on June 1, 2026 at 7:11 pm

    Heap: All object pointers live on the heap.

    Stack and Frame is clear (I think) but am I right with my Heap statement?

    Not quite. Most(*) dynamically allocated objects live on the heap, the pointers to those objects live in other objects (or variables, they are essentially the same thing) – which may be on the stack or heap. This distinction between "objects" and "pointers to objects" is important in Objective-C (it is not so in all languages), and its not correct to say all "object pointers live on the heap".

    (*) "Most" as it is possible, and sometimes quite useful, to allocate dynamic objects on the stack. You cannot do this with Objective-C objects, but you can do this with C objects (and C is part of Objective-C). Don’t concern yourself yet with this, this footnote serves more to illustrate that the model being described here is a simplification.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I found this site/tutorial/demo from another question here on SO. Very nice and clean
For example, here on stack overflow the URL https://stackoverflow.com/questions/tagged/javascript+php will give you all questions
I'm trying to speed up jQuery performance. I found some questions/answers on this site
This question comes from a range of other questions that all deal with essentially
I have found this web site really helpful since everybody helps here with the
I found this on an interview questions site and have been pondering it for
I've found alot of questions like this one around the site but none of
All my questions in this topic related to asp.net 2.0 While working on some
This is going to be the noobist of all noob questions, but what exactly
I know this one is the weirdest of all weird questions I have asked

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.