Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!snorkelwacker!bloom-beacon!bu.edu!m2c!umvlsi!chittamu From: chittamu@umvlsi.ecs.umass.edu (Satish Kumar .C) Newsgroups: comp.lang.c Subject: Question about Declaration Specifiers Message-ID: <750@umvlsi.ecs.umass.edu> Date: 26 Feb 90 16:14:35 GMT Reply-To: chittamu@umvlsi (Satish Kumar .C) Distribution: usa Organization: University of Massachusetts, Amherst Lines: 33 The grammar in K & R 2nd edition gives the rule for Declaration Specifiers as follows. Declaration_Specifiers : Storage_Class_Specifier | Type_Specifier | Type_Qualifier | Storage_Class_Specifier Declaration_Specifiers | Type_Specifier Declaration_Specifiers | Type_Qualifier Declaration_Specifiers ; Obviously this means we can have declarations of the sort register const int const register int int register const etc. I was always under the impression that the rule had to be Declaration_Specifiers : Type_Qualifier Storage_Class_Specifier Type_Specifier Am I mistaken? Is my interpretation of K & R's grammar correct? Or is there some other reason for it being that way? Any help would be greatly appreciated. Thanks, -- -Satish. chittamu@cs.umass.edu -- The Theory of Objectivity: E = MC++