Path: utzoo!utgpu!water!watmath!clyde!att!pacbell!lll-tis!mordor!lll-lcc!well!mz
From: mz@well.UUCP (Michael Zentner)
Newsgroups: comp.sys.mac.programmer
Subject: Re: I thought I knew C, but...
Summary: difference between  " and '
Message-ID: <6143@well.UUCP>
Date: 2 Jun 88 05:30:38 GMT
References: <341STORKEL@RICE>
Lines: 15


pardon me if this has been answered already, but

'doit'   is a 4 byte constant, each byte being the ascii representation of the
         respective character.

"doit"  is a string.


a function call such as  foo('doit') means you are passing a 4 byte constant.

a function call such as  foo("doit") means you pass an address of a character.