Re: pointers



"Simon Biber" <news@xxxxxxxxx> wrote in message
news:4314213f$0$29041$afc38c87@xxxxxxxxxxxxxxxxxxxxxxx
....
> Certainly the ability to declare objects of different types in a single
> declaration would be lost:
>
> For example, the declaration:
> char c, *pc, **ppc, *(*pfrpc)();
>
> Would become:
> c: char;
> pc: pointer to char;
> ppc: pointer to char;
> pfrpc: pointer to function returning pointer to char;
>
> Somewhat more typing, but much clearer!

Maybe that (less typing) was the very idea of the C/Unix developers... Just
remember creat() :)

Alex


.



Relevant Pages

  • on topic to clc [Was: Banks and economy]
    ... pointer type - which I think is correct for "arrays", ... Since, as a formal parameter, char cptr[]; ... pointer to the 'completing' declaration, ...   tentative definition. ...
    (comp.lang.c)
  • Re: fgetc
    ... argv is declared as array of pointer to char. ... it's declared as a pointer to pointer to char. ... "Neither compiler yet handled the general declaration syntax of today or ...
    (comp.lang.c)
  • Re: fgetc
    ... argv is declared as array of pointer to char. ... it's declared as a pointer to pointer to char. ... "Neither compiler yet handled the general declaration syntax of today or ...
    (comp.lang.c)
  • Re: segmentation fault
    ... char s; ... it serves to temporarily replace the declaration ... While fgets returns a null string, ... You shouldn't try to printf a NULL pointer. ...
    (comp.lang.c)
  • Re: Pointer on char truncation while calling Pro*C 9.2 function on Solaris 8 !?
    ... There are some warning: "implicit function declaration" lost in hundreds of ... I've added a proto for this function and the result pointer is now OK. ... The Oracle PreCompiler set the .arr to unsigned char* (same on AIX, ...
    (comp.unix.solaris)