Y
ypjofficial
Hello All,
While readling the C and C++ literature i came to know that the OS
allocates separate protected memory space for each running program and
the program do not interfare into one another's address space.
Also the address space allocated for each program is totally relative.
Now i want to know that from what address value does the stack starts
and the heap actually start?
What is at address 0(first address) in a program?
In other words,why the variables defined in the program have their
address as 1,2,3...( of course in hexadecimal)?
The address values are always like 0x00012ffc7 and likes..
Regards,
Yogesh Joshi
While readling the C and C++ literature i came to know that the OS
allocates separate protected memory space for each running program and
the program do not interfare into one another's address space.
Also the address space allocated for each program is totally relative.
Now i want to know that from what address value does the stack starts
and the heap actually start?
What is at address 0(first address) in a program?
In other words,why the variables defined in the program have their
address as 1,2,3...( of course in hexadecimal)?
The address values are always like 0x00012ffc7 and likes..
Regards,
Yogesh Joshi