const * volatile *

C

coolrama

what does this declaration mean
const * volatile *

Is it valid. Is it used somewhere?

Thanks
Rama
 
A

Alf P. Steinbach

* coolrama:
what does this declaration mean
const * volatile *

Read it from right to left.

Look up the meaning of '*', 'volatile' and 'const', as you encounter them
reading that way, in your C++ textbook.

Which textbook is that, by the way?

Is it valid.

Not on its own, it's not a full declaration of something.

Is it used somewhere?

Presumably, where did you encounter it?
 
R

red floyd

Alf said:
* coolrama:



Read it from right to left.

Look up the meaning of '*', 'volatile' and 'const', as you encounter them
reading that way, in your C++ textbook.

Which textbook is that, by the way?





Not on its own, it's not a full declaration of something.





Presumably, where did you encounter it?

Once wrote (in C, but still valid C++):

const volatile unsigned long *const MEM_MAPPED_REGISTER =
(const volatile unsigned long *) 0xC0000000L;

Of course, I was working directly at the hardware level....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top