[C++]Why pass a pointer to a pointer?

Ok, while reading my book on D3D10, I noticed that the last two parameters of the D3D10CreateDeviceAndSwapChain function were a pointer to a pointer. Like **device and the book said "returns the device". I don't think this just applies to D3D, so why would I pass a pointer to a pointer (**foo) as a parameter?

Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Helpful Social

Copyright © 2024 QUIZLS.COM - All rights reserved.