char a[5000];
main()
{}
and in another file
main()
{
char a[5000];
}
after compiling both file.
exe of both file size have large difference.
why
rahul pareek
0
Newbie Poster
Recommended Answers
Jump to PostIn the first, the global array is likely to be stored in the BSS (uninitialized data) segment of the executable file itself while the local array is more likely to be drawn from the stack at runtime. Because stack space is already allocated to the executable in one way or …
All 3 Replies
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
phani1092
0
Newbie Poster
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
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.