Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > qualified and unqualified types

Reply
Thread Tools

qualified and unqualified types

 
 
junky_fellow@yahoo.co.in
Guest
Posts: n/a
 
      07-08-2005
What are the qualified and unqualified types in C ?

 
Reply With Quote
 
 
 
 
Suman
Guest
Posts: n/a
 
      07-08-2005


http://www.velocityreviews.com/forums/(E-Mail Removed) wrote:
> What are the qualified and unqualified types in C ?

I dont have a copy of the standard handy so I'll quote
from my K&R2, which should help(and is self explanatory):
A.4.4 Type Qualifiers

An object's type may have additional qualifiers. Declaring an object
const announces that its value will not be changed; declaring it
volatile announces that it has special properties relevant to
optimization. Neither qualifier affects the range of values or
arithmetic properties of the object.

A.8.2 Type Specifiers
....
Types may also be qualified, to indicate special properties of the
objects being declared.

type-qualifier:
const
volatile

Type qualifiers may appear with any type specifier. A const object may
be initialized, but not thereafter assigned to. There are no
implementation-dependent semantics for volatile objects.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pointer to qualified poitner to qualified object Szabolcs Borsanyi C Programming 13 06-08-2008 07:52 PM
qualified name and unqualified name George2 C++ 0 03-07-2008 05:29 AM
qualified name VS unqualified name in class template. Wayne Shu C++ 4 03-12-2007 01:36 PM
Unqualified element in XSD definition Mavis Java 1 06-02-2006 01:35 AM
qualified and unqualified local elements (was: My schema validation is not working?) C. M. Sperberg-McQueen XML 0 07-31-2003 01:59 AM



Advertisments