Machine-translated by Google. Questions are authored in English.
Top

Discussion

Which of the following would NOT be found in a driver's header file?

  • A.the prototypes of the driver's functions
  • B.the types the driver's interface uses
  • C.the error codes the driver may return
  • D.the addresses of the device's registers

Answer: D

Register addresses belong in the implementation, where nothing above can reach them; publishing them invites the application to bypass the driver. The other three constitute the interface and must be visible to callers.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.