Re: char*& and char* ???
From: Stephen Sprunk (stephen_at_sprunk.org)
Date: 04/15/04
- Next message: P.J. Plauger: "Re: double money"
- Previous message: CBFalconer: "Re: double money"
- In reply to: pembed2003: "char*& and char* ???"
- Next in thread: Dan Pop: "Re: char*& and char* ???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 15 Apr 2004 04:02:31 GMT
"pembed2003" <pembed2003@yahoo.com> wrote in message
news:db593abd.0404141335.3d7c2bb5@posting.google.com...
> Hi coders,
> I have the following:
>
> void f1(char* &s){
> *s = 'a';
> }
That looks like C++; it's not valid C.
> void f2(char* s){
> *s = 'b';
> }
That is valid C.
S
-- Stephen Sprunk "Stupid people surround themselves with smart CCIE #3723 people. Smart people surround themselves with K5SSS smart people who disagree with them." --Aaron Sorkin
- Next message: P.J. Plauger: "Re: double money"
- Previous message: CBFalconer: "Re: double money"
- In reply to: pembed2003: "char*& and char* ???"
- Next in thread: Dan Pop: "Re: char*& and char* ???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]