About 309,000 results
Open links in new tab
  1. Where in memory are my variables stored in C? - Stack Overflow

    By considering that the memory is divided into four segments: data, heap, stack, and code, where do global variables, static variables, constant data types, local variables (defined and declared in

  2. c++ - How are global variables stored? - Stack Overflow

    Mar 6, 2013 · AFAIK, there're 2 types of global variables, initialized and unintialized. How are they stored? Are they both stored in the executable file? I can think of initialized global variables …

  3. Location of pointers and global variables in C - Stack Overflow

    Jun 24, 2010 · 6 Global variables are usually stored in the application's data segment. Pointers aren't stored any differently than other variables (e.g. if you have a local variable of type int*, it …

  4. Are global variables in C++ stored on the stack, heap or neither of ...

    Jun 5, 2017 · Global variables have static storage duration. They are stored in an area that is separate from both "heap" and "stack". Global constant objects are usually stored in "code" …

  5. objective c - Where are the local, global, static, auto, register ...

    Sep 10, 2010 · Local and auto variables are stored on the stack. Global and static variables are stored in a DATA page. register variables are stored in a register on the CPU if possible, …

  6. Where are static variables stored in C and C++?

    Uninitialized data segment (BSS): All the uninitialized data are stored in this segment."), I think it should say this: (" Initialized data segment: All the global & static variables that were initialized …

  7. Where are constant variables stored in C? - Stack Overflow

    Oct 16, 2009 · I wonder where constant variables are stored. Is it in the same memory area as global variables? Or is it on the stack?

  8. Global memory management in C++ in stack or heap?

    5 Neither declaring a data structure globally in a C++ consumes heap or stack memory. Actually, global variables are typically allocated in a data segment whose size remains unchanged …

  9. Linux: where are environment variables stored? - Stack Overflow

    Feb 10, 2009 · The environment variables of a process exist at runtime, and are not stored in some file or so. They are stored in the process's own memory (that's where they are found to …

  10. c - Difference between 'global' and 'static global' - Stack Overflow

    Jun 6, 2009 · A global variable's scope is in all the files, while a static global variable's scope is just the file where it is declared. Why so? Where are global or static global variables stored in …