简体   繁体   中英

What is the meaning of the *(volatile void**) in c?

I was working on the "QNX RTOS" in which i came across the following line can anyone please help me to understand?

*(volatile  void **) kernel_data = (void *) & _mqx_version_number;  

Regards, Omkar Dixit

(volatile void **)kernel_data --> cast kernel_data to pointer to pointer of type volatile void.

Now, kernel_data is a pointer to pointer ( volatile void** )
*kernel_data is pointer of type volatile void*

*(volatile void **) kernel_data = (void *) & _mqx_version_number;

So, here, we are type casting kernel_data to type volatile void ** and then dereferencing it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM