K
Kuljit
Hello everyone,
What are data type qualifers?
- Kuljit Singh Tomar
..
What are data type qualifers?
- Kuljit Singh Tomar
..
Kuljit said:What are data type qualifers?
Ben Pfaff said:const, restrict, and volatile
Rod Pemberton said:Type qualifiers modify the way the data is used or accessed. Many
non-standard "attributes" are implemented as type qualifiers: cdecl,
stdcall, __fastcall, __w64, __thread, noreturn, __malloc__, format,
__attribute, __attribute_used__, __declspec, etc.
Rod Pemberton said:Pre-ANSI versions of C usually #define const, restrict, or volatile to
nothing.
Rod said:Type qualifiers modify the way the data is used or accessed. Many
non-standard "attributes" are implemented as type qualifiers: cdecl,
stdcall, __fastcall, __w64, __thread, noreturn, __malloc__, format,
__attribute, __attribute_used__, __declspec, etc.
Pre-ANSI versions of C usually #define const, restrict, or volatile to
nothing. If your C code doens't work properly without the type qualifiers,
you have a coding error. Using a type qualifier to _fix_ a problem should
be a 'red flag' that something is incorrect.
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.