1)How is the memory structure organised in C. i.e., the way in which
the stack and heap memory are used in C.
Chances are it WON'T be organized by the AFL-CIO. But ANSI C does
not rule out that possibility.
What type of answer did you expect? Alphabetically by Social
Security Number? There's a Presidential Structure, and under that
are the vice-structures, and under that there are the assistant
vice-structures and manager-structures, ... and under that there
are the janitor-structures? That the list of allocated memory is
kept in a SQL database in sub-dungeon in the basement of Microsoft
corporate headquarters, and you'll be taxed on every piece of memory
you use? I believe all of these are allowed by ANSI C, but they
are rather unlikely implementations.
ANSI C doesn't make requirements on HOW you have to implement this
stuff, just that it needs to work as required.
2) What will be the value of EOF.
The value of EOF is EOF, a negative integer. Contrary to popular
opinion, its value is NOT guaranteed to be -42.
Gordon L. Burditt