Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!ncar!boulder!tramp!swarbric From: swarbric@tramp.Colorado.EDU (Frank Swarbrick) Newsgroups: comp.lang.c Subject: arrays... Message-ID: <5773@sigi.Colorado.EDU> Date: 1 May 88 21:51:16 GMT Sender: news@sigi.Colorado.EDU Reply-To: swarbric@tramp.Colorado.EDU (Frank Swarbrick) Organization: University of Colorado, Boulder Lines: 37 Is there some reason why you can do: void foo(const int *bar); main() { int ary[] = {1,2,3,4}; foo(ary); } but you can't do void foo(const int *bar); main() { foo({1,2,3,4}); } Never mind that it seems silly to do this particular thing without any other parameters. I was just too lazy to write in the other ones. This is even stranger concidering you *can* do main() { char str[20]; strcpy(str,"This sucks!"); } (no, strcpy(str,{'T','h','i','s',' ','s','u','c','k','s','\0'}); doesn't work....) Frank Swarbrick (and his cat) swarbric@tramp.Colorado.EDU ...!{ncar|nbires}!boulder!tramp!swarbric "The shifting shafts of shining weave the fabric of their dreams..."