answersLogoWhite

0

C memory model

Updated: 10/19/2022
User Avatar

Wiki User

15y ago

Best Answer

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

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: C memory model
Write your answer...
Submit
Still have questions?
magnify glass
imp
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 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).


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.


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.


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!)


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.


What is memory leaking in c plus plus?

Memory leaking in C++, or in any language that supports dynamic memory allocation, is a failure to release memory when its use is no longer required. This causes the memory image of the process to grow, sometimes without bounds, ultimately causing process failure due to memory exhaustion.


Memory is empty but it says memory full in data c?

You have one or more errors in your program.