By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,441 Members | 996 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,441 IT Pros & Developers. It's quick & easy.

What is an unqualified pointer in C?

P: 6
What are unqualified pointers ?
Aug 8 '07 #1
Share this Question
Share on Google+
4 Replies


Meetee
Expert Mod 100+
P: 931
What are unqualified pointers ?
Hi,

This I have read from some website:

X int * Y p ;
means that the pointer p is stored in the Y memory. This pointer points to integer data that is located in the X memory. If no memory qualifiers are used, the data is stored into unqualified memory.

For proper integration with the C language, a memory structure is specified, where the unqualified memory encompasses all other memories. All unqualified pointers are pointers into this unqualified memory.

Regards
Aug 8 '07 #2

Expert 10K+
P: 11,448
Hi,

This I have read from some website:

X int * Y p ;
means that the pointer p is stored in the Y memory. This pointer points to integer data that is located in the X memory. If no memory qualifiers are used, the data is stored into unqualified memory.

For proper integration with the C language, a memory structure is specified, where the unqualified memory encompasses all other memories. All unqualified pointers are pointers into this unqualified memory.

Regards
Huh? As far as I know qualified types are types with 'volatile' or 'const' added to
the type:

Expand|Select|Wrap|Line Numbers
  1. volatile int x; // qualified
  2. volatile int* px; // qualified
  3. int y; // unqualified
  4. int *py; // unqualified
  5. // etc.
  6.  
kind regards,

Jos
Aug 8 '07 #3

Meetee
Expert Mod 100+
P: 931
Huh? As far as I know qualified types are types with 'volatile' or 'const' added to
the type:

Expand|Select|Wrap|Line Numbers
  1. volatile int x; // qualified
  2. volatile int* px; // qualified
  3. int y; // unqualified
  4. int *py; // unqualified
  5. // etc.
  6.  
kind regards,

Jos
Even I didn't know. Just a new question and I search the web and found this.

Thanks for clear explanation :)
Aug 8 '07 #4

sicarie
Expert Mod 2.5K+
P: 4,677
What are unqualified pointers ?
Suresh Gani-

Please read this thoroughly before posting - we try to keep the site neat by using descriptive titles, etc... and appreciate your help!
Aug 8 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.