Question
How memory is reserved using a declaration statement ?

Answers

Memory is reserved using data type in the variable declaration. A programming language implementation has predefined sizes for its data types.

For example, in C# the declaration int i; will reserve 32 bits for variable i.

A pointer declaration reserves memory for the address or the pointer variable, but not for the data that it will point to. The memory for the data pointed by a pointer has to be allocated at runtime.

The memory reserved by the compiler for simple variables and for storing pointer address is allocated on the stack, while the memory allocated for pointer referenced data at runtime is allocated on the heap.   Your Comment






Search
Can you Answer!!
  • Q Write Short Essay on SCAR markers
  • Q What are the different modes of operations performed by qemu?
  • Q What is the height of Kailash Mountain Peak in Chamba?
  • Q what is inflorescence type in Hypopterygiaceae family?
  • Q Explain about thread priority?
  • Q 43 Things was launched in
  • Q What Privilege Is Needed for a User to Create Tables?
  • Q Co- official Language of West Bengal?
  • Q The name of the metro rail way in Bangalore:
  • Q The pricing technique according to which seller's charge high prices every day and offer low prices on temporary basis is classified as
  • Q Who appeared for the first time in Beetons Christmas Annual