This question already has an answer here:
While learnin c programming only the
memory is mentioned. But in practice it seems that there is more; the
stack words are almost there.
What is the difference between these terms? why they're very interesting?
Please, i need a detailed answer. Short answers can't serve. Also some resources may be helpful.
Tanks for advance.
In keeping with your request, I won't make this an answer, but in short the stack and buffers are specific places in memory. "The stack" is the function stack, a stack data structure that holds all local variables. Buffers can be used in various contexts in general they store temporary data that in then processed.
You probably mean "heap" instead of "buffer". The former is always different from the stack. The latter is a chunk of memory.
if this question was asked 7 years ago, it would have tons of upvotes, the hypocricy of this site is astonishing
You teaching rullof how to search the internet? ;-)
FiddlingBits:- When you see lines like Please, i need a detailed answer. Short answers can't serve. in question then you dont have the alternative other than this ;)
How true, how true.
RahulTripathi Tanks. Good with buffer. For the stack i know what is the principle of LIFO but i don't know what it has to do with program and the processing, what's the important to know about it.
rullof:- Although I didnt get your point very clearly but I would tell you that IIRC compilers use stacks when checking things like if/else . Also commands in programming language like recursive method calls use a stack to order or precedence for each call