typedef struct error
This is how this normally looks....
Here a structure named error is typedefed as ERROR(means in place of struct error it can be said as ERROR)...
then e is a structure..
e.err is accessing a member in the structure... thats it.... is it correct......?
(Mon, Jan 9, 2012 06:28:29 PM)
In c how can u create an object like ERROR e; ? Is it correct?
Instead of using e.err , why cant we simply use ERROR.err?
(Thu, Feb 23, 2012 03:12:49 PM)
Hey in the structure, how can we declare like that ?
Every variablemust be declared separately, am I right?
(Sun, Oct 7, 2012 04:00:14 PM)
We are Typedefin the structure error to ERROR.
Therefore ERROR is acting like struct error.
ERROR e; is the same as struct error e;