🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1568

Re: Quick Question

#1568
From: Dave Bright
Date: Tue, 07 Aug 1990 19:40
19 lines
992 bytes
hjelm@g.gp.cs.cmu.edu (Mark Hjelm) writes:
>What is the correct parse of:
>    int *const *volatile a;
>a is a volatile pointer to a const pointer to an int or
>a is a const pointer to a volatile pointer to an int?

According to cdecl, choice #1:
$ cdecl
Type `help' or `?' for help
cdecl> explain int *const *volatile a;
declare a as volatile pointer to const pointer to int
$

>hjelm@cs.cmu.edu
-- 
David A. Bright
Secure Computing Technology Corporation		bright@SCTC.COM		(work)
1210 West County Road E, Suite 100		dab@Bright.MN.ORG	(home)
Arden Hills, MN  55112
Technical Details
Message-ID: <1990Aug7.194009.11638@sctc.com>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!samsung!zaphod.mps.ohio-state.edu!usc!rutgers!ub.d.umn.edu!cs.umn.edu!sctc.com!bright
References: <10136@pt.cs.cmu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!samsung!zaphod.mps.ohio-state.edu!usc!rutgers!ub.d.umn.edu!cs.umn.edu!sctc.com!bright
From: bright@sctc.com (Dave Bright)
Newsgroups: comp.std.c
Subject: Re: Quick Question
Keywords: parsing, ansi c
Message-ID: <1990Aug7.194009.11638@sctc.com>
Date: 7 Aug 90 19:40:09 GMT
References: <10136@pt.cs.cmu.edu>
Organization: Secure Computing Technology Corporation
Lines: 19