473,395 Members | 1,401 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

const * volatile *

what does this declaration mean
const * volatile *

Is it valid. Is it used somewhere?

Thanks
Rama

Sep 10 '05 #1
2 1369
* 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?

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Sep 10 '05 #2
Alf P. Steinbach wrote:
* 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?


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....
Sep 10 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: cheeser | last post by:
Hello all, Please see the question in the code below... Thanks! Dave #include <iostream>
16
by: herbertF | last post by:
Hi guys, In a program (not my own) I encountered the declaration of a constant pointer to an array consisting of two other const pointers to arrays. Not quite sure why they do it so complicated,...
1
by: Mantorok Redgormor | last post by:
strictly speaking we can't say that const means "read only" but instead that it means "do not modify me please" since an object can be both modifiable and not modifiable or volatile and const,...
9
by: Skybuck Flying | last post by:
Hello, What does Const mean in this c structure ? and what is the delphi equivalent ? I think const struct just means it can't be modified... is that correct ? Struct { Type1 Field1;...
2
by: FT | last post by:
Hi all: In the standuard 9.3.2, it says: >The type of /this/ in a member function of a class X is X*. If the member >function is declared const, the type of /this/ is const X*, if the member...
9
by: d.f.s. | last post by:
In the post below, 'copy constructor?', the answers refer to an object declared as const volatile. Now I'm confused. Are those terms not mutually exclusive? const='Hey compiler! This is not...
7
by: nospam | last post by:
Hi all, I have this struct typedef: typedef struct { int * test; }testst; and have this declaration:
4
by: Olaf | last post by:
Hi, is there a way to declare an array with const variables like: static const ushort RX_BUF_SIZE = 0x100; typedef struct { volatile ushort buf; volatile unsigned head; volatile unsigned...
29
by: Rohit kumar Chandel | last post by:
Hi all, I have a doubt in const keyword. My understanding says that a variable declared const can not be modified by the module it is defined in. Then consider the following code segment:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.