473,569 Members | 2,463 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

why Typedef is storage class specifier?

Hi

C Ref Man says

" The typedef specifier does not reserve storage and is called a
storage class specifier only for syntactic convenience "

does this mean storage specifier for "user specific storage area" ?
ie. flexibity to provided to create user defined storage class
specifier.

Oct 16 '06 #1
1 3574
"sunny" <su*******@gmai l.comwrites:
C Ref Man says

" The typedef specifier does not reserve storage and is called a
storage class specifier only for syntactic convenience "

does this mean storage specifier for "user specific storage area" ?
ie. flexibity to provided to create user defined storage class
specifier.
We don't generally complain about minor spelling or grammatical
errors, but in this case I really can't figure out what you're trying
to say. Can you rephrase the question, and try not to leave out any
words?

I think the answer to your question is no, but I can't be sure. There
are no user defined storage class specifiers, only the ones defined by
the language: typedef, extern, static, auto, and register.

--
Keith Thompson (The_Other_Keit h) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Oct 16 '06 #2

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

Similar topics

1
2502
by: ravi_shankar | last post by:
I know java,but I am just beginner in C.I have some confusions regarding extern storage specifier and default storage class specifier for a variable when it has file scope that is ,when it is not defined within any block -- Posted via http://dbforums.com
3
12384
by: Dave | last post by:
Hi all, I was wondering if when I use the typedef command, I can typedef multiple names. EX) typedef struct foo { foo *next; foo *prev; int val;
5
41025
by: Cancerbero | last post by:
Hi (first, excuse me for my bad english) As I know, the semantics for typedef is: typedef A B; I think this makes B a synonym of A, where A is an existing data type. Is that right? Based on the previous definition of typedef, I can't understand the next:
13
6529
by: Martin | last post by:
This post asks two questions, which I've illustrated in one C source file (see below), which clean compiles on my GNU compiler. 1. In K&R2, Section A8.9 it says "Declarations whose storage class specifier is typedef do not declare object." When I compile and run my sample code, the value "2" is displayed. Clearly the typedef has created the...
2
2919
by: Mehta Shailendrakumar | last post by:
Hi all, Have alook at two different declarations below: typedef unsigned char uc; typedef void (*fptr) (void); The first declaration has a left part which is a C keyword: "unsigned char" and the declaration is clarly understandable.
3
310
by: James Brown | last post by:
I am defining the following typedefs: typedef int* pint; typedef pint* ppint; typedef ppint* pppint; taking the last typedef - "pppint" - would this be referred to as: an alias to type "ppint *" or an alias to type "int ***"
1
1485
by: sunny | last post by:
Hi why "typedef " is storeage class specifier even though it does not decide storage and lifetime of an variable. thanks sunny
5
3494
by: Jess | last post by:
Hello, I think the syntax of typedef is typedef existing-type new-type However, I've seen a statement typedef string stringarray;
6
2324
by: Sourabh Daptardar | last post by:
Why is register storage specifier not allowed for class member variables? <snip> ISO standard : Section 9.2 ; point 6 : -6- A member shall not be auto, extern, or register. </snip> I believe it is not related to object storage being contiguous, discontiguous or contiguous with gaps.
0
7703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7618
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7926
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7678
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7982
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6286
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5222
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2116
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1226
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.