answersLogoWhite

0

C memory model

User Avatar

Anonymous

17y ago
Updated: 10/19/2022

Memory Organization for a process

--------------------------------------------

CODE SEGMENT: contains executable code

DATASEGMENT:contains static and global variable

HEAP SEGMENT:Dynamically allocated variables will be in heap

STACK SEGMENT:For local or automatic variables

PREM G

premgnath@gmail.com

User Avatar

Wiki User

17y ago

What else can I help you with?

Related Questions

How do you print a far pointer value in a C programming environment using small memory model?

(*p)[23]


What is the memory management operator in c plus plus?

There is no memory management operator in C++ -- it is an unmanaged language. You use the C++ new operator to allocate memory, and use the C++ delete operator to release previously allocated memory.


What is the function to allocate memory?

In C and C++, the function used to allocate memory dynamically is malloc() (memory allocation). It allocates a specified number of bytes and returns a pointer to the first byte of the allocated memory. In C++, the new operator is commonly used for memory allocation, as it also constructs objects. It's important to free allocated memory using free() in C or delete in C++ to avoid memory leaks.


What are new and delete operators in c plus plus?

New and Delete are the memory management operators in c++,like c language we use malloc() and calloc() functions to allocate memory and free() functiong to release the memory similarily we use new to allocate memory in C++ and Delete to release the allocated memory....


Where the heap memory is allocated in c?

Main Memory (RAM).


Is C row major when it comes to memory layout?

Yes, C is row major when it comes to memory layout.


At what time the memory is allocated for variable in c and c?

Static memory allocation occurs at compile time where as dynamic memory allocation occurs at run time.


What is meant by contiguous memory allocation in C?

Contiguous memory allocation in C programming refers to the assigning of consecutive memory blocks to a process. Contiguous memory allocation is one of the oldest and most popular memory allocation schemes in programming.


Why Near pointers are used for all code and data references in huge memory model for turbo C?

You may have misunderstood something. Choose Huge Model,and forget about near and far. (Honestly, this topic is outdated by twenty years!)


Does the C in Ramirez guitar model C-650-A stand for model or cedar top?

It stands for the model c line, i think.


When was Ford Model C created?

Ford Model C was created in 1904.


What is an address in C plus plus programming?

An address in C or C++ is the location in memory of an object or function. An address is the contents of a pointer, as opposed to the contents of the memory location pointed to by the pointer.