Thread: memory structure

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Oct 2022
    Posts
    96

    memory structure

    Hi there,
    I have been reading the article shared in link Memory Layout of C Programs - GeeksforGeeks, but I'm still having trouble understanding the memory structure in C. From what I gathered, there are four segments: the text where the program is stored, the data segment for global variables, the stack for local variables, and the heap for dynamic memory.

    I don't use Linux operating system. However, I'm unsure about where other variables like static global variables, static local variables, and external variables, pointer inside function are stored in this memory structure?

    Could you help clarify this for me?
    Last edited by Salem; 01-27-2024 at 08:03 AM. Reason: Font size abuse

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how much memory structure take in code
    By abhi143 in forum C Programming
    Replies: 2
    Last Post: 11-30-2019, 12:33 AM
  2. Replies: 4
    Last Post: 07-19-2015, 05:51 PM
  3. I need your Help, structure in memory
    By Serj in forum C Programming
    Replies: 4
    Last Post: 12-09-2011, 12:15 PM
  4. Replies: 4
    Last Post: 04-25-2010, 10:57 AM
  5. Allocating Memory for a Structure
    By surfxtc79 in forum C Programming
    Replies: 4
    Last Post: 06-05-2003, 11:40 AM

Tags for this Thread