Is 'long unsigned long' compliant to standard?

Scott Moore smoore@powerfile.com
Wed Jan 23 18:15:00 GMT 2008


long and unsigned are type-specifiers. They are accepted in a looping syntax
such as declaration-specifiers (see the C grammar). Specifying long twice is
simply redundant, and has no effect on the final type. 

-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On Behalf Of Zuxy Meng
Sent: Tuesday, January 22, 2008 5:25 AM
To: gcc-help@gcc.gnu.org
Subject: Is 'long unsigned long' compliant to standard?

Hi Gurus,

GCC accepts it without any warning, but could anybody confirm it's guaranteed to work on any compliant compiler?

--
Zuxy

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.762 / Virus Database: 510 - Release Date: 9/13/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.762 / Virus Database: 510 - Release Date: 9/13/2004
 



More information about the Gcc-help mailing list