Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is meant by descriptor in c language?

0
Posted

What is meant by descriptor in c language?

0

The term “descriptor” in C (though it’s used for other languages too and has the same meaning) usually means a data structure that *describes* some object, or has information about some object. For a common example, Linux (and Unix) has file descriptors, which in this case are just integers, but those integers are actually array indexes into a file descriptor array, each element of which describes the file that’s being accessed and any current state (such as file position). So when you see the term descriptor, just think “description”. Descriptors can be implemented in a number of ways, including an integer as illustrated above, a pointer to a struct, or an actual struct.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123