Subj : Re: Wrong abt finished program - why no output? To : borland.public.cpp.borlandcpp From : "Tim Jackson" Date : Mon Aug 11 2003 01:28 pm "Wayne A. King" wrote in message news:3f370b27.35736182@newsgroups.borland.com... > On Mon, 11 Aug 2003 01:36:05 +0100, "Tim Jackson" > wrote: > > >My God it's a long time since I did C--. > >change: main( int, char**argv) // or char*argv[] if you > >prefer. You must specify the argument types if you use them > > I don't know what the C-- language is or expects > but for C you can't omit the argument name as you have > done above with argc. You can only do that with C++ > (unless the latest C Standard adds it to that language). > In any event, it is unlikely that any C compiler relevant > to this newsgroup supports the omission. > > P.S. - Please trim quoted material when replying. Thanks. > Borland C++ 5.02 did accept it.. You are right that it is not standard C, and that I had inadvertently compiled with C++ syntax enabled. That was the only difference it made. Of course the finished program should really check 'argc' anyway. My trimming policy is to trim anything without which the post would make sense alone. If the quote is long, I top post. In this case, the program listing was necessary for reference. I suppose if pushed I could have cut out the program description. I accept that the listing could be found elsewhere in the thread, but posts will not all be deleted at the same time. I spend most of my time in newsgroups where posts are not read promptly and need to stand alone. Tim Jackson .