Path: utzoo!censor!geac!jtsv16!uunet!tut.cis.ohio-state.edu!mailrus!uflorida!novavax!gls From: gls@novavax.UUCP (Gary Schaps) Newsgroups: comp.lang.c Subject: passing *char parameters by reference Message-ID: <1424@novavax.UUCP> Date: 9 Aug 89 20:20:23 GMT Distribution: usa Organization: Nova University, Fort Lauderdale, FL Lines: 19 Would someone be kind enough to tell me why this program fails? char *x, *y; { register char *temp; temp = x; x = y; y = temp; } main() { char *a="aaaa"; char *b="bbbb"; swap( &a, &b ); printf( " a = %s\t b = %s\n", a, b); }