hi friends,
i was doing functions and i encountered this thing that automatic variables are stored as stacks and static,global as heaps.I am in a bit confusion about these terms......can someone help me out...plz
sahil1991
0
Light Poster
Recommended Answers
Jump to PostI think this issue is best illustrated by a simple example. Consider the following simple program:
const int four_factorial = 24; int some_function(int* c, int* d) { return c[0]*d[0] + c[1]*d[1] + four_factorial; }; int main() { int* a = new int[2]; int b[2]; int result = …
All 4 Replies
alwaysLearning0
39
Junior Poster
csurfer
422
Posting Pro
Nathaniel10
34
Junior Poster
mike_2000_17
2,669
21st Century Viking
Team Colleague
Featured Poster
StuXYZ
commented:
Excellent guide.
+3
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.