What is meant by descriptor in c language?
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.