Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!hellgate.utah.edu!peruvian.utah.edu!jbleaza From: jbleaza%peruvian.utah.edu@cs.utah.edu (Jason Bleazard) Newsgroups: comp.sys.atari.st Subject: Re: Sozobon C starter question Message-ID: <1991Apr17.143748.13488@hellgate.utah.edu> Date: 17 Apr 91 20:37:48 GMT References: <91107.154833JJL101@psuvm.psu.edu> Organization: University of Utah CS Dept Lines: 42 In article <91107.154833JJL101@psuvm.psu.edu> J.J. Lehett writes: > I am getting an error which I am not sure why with this line: > > main( int argc, char **argy) > > that says it is expecting a ) > > but if I change that to: main() > > I do not get that problem... any idea as to why? > > Thanks in advance, > >************************************************************************* >* J.J. * Internet: JJL101@PSUVM.PSU.EDU * Penn State * >* * * Center for * >* John Lehett * Bitnet: JJL101@PSUVM * Academic Computing * >************************************************************************* >* Limit(Continuous Luck) = Skill * >************************************************************************* Sozobon expects this really arcane method of passing parameters. In the above example, try: main(argc, argy) int argc; char **argy; { } Someone told me that this is the old method of passing parameters. One advantage is that you can say void foo(x, y, z) int x, y, z; {} instead of void foo(int x, int y, int z) {} In other words, you only have to type int once. (Yay) -Jaysan