Reputation: 403
"When we execute our C program, operating system loads the program into memory. In case of DOS, it first loads 256 bytes into memory, called program segment prefix. This contains file table, environment segment, and command line information" - I read this in a documentation of C language. My question is that what is file table, environment segment?
Upvotes: 0
Views: 176
Reputation: 385194
Wikipedia has a whole article on the Program Segment Prefix, with links to detail on the features that it contains.
From it, we may deduce that:
the file table is where open file handles live; and
the environment segment contains the names and values for all environment variables in scope.
Upvotes: 1