526 views
0 votes
0 votes
Interview Question:

1) How size of a stack and heap memory for a proces is decided?

2) I wrote a program with no data or instructions. How text, data, stack ,heap will be allocated for corresponding process?

main()

{

/*No instructions*/

}

1 Answer

0 votes
0 votes
As per my knowledge. it is completely based on the decision(size of stack,queue,code and data segment) of the compiler and os.Even process memory allocation will vary based on the machine(windows32) to machine(linux) configuration.
edited by

Related questions

1 votes
1 votes
1 answer
3
sh!va asked Dec 12, 2016
465 views
Interview question: Why HTTP is used for web document transfer instead of FTP even though FTP used to be generally considered faster. ?