Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #67380

Re: Can main() be called by itself?

From Ben Bacarisse <ben.usenet@bsb.me.uk>
Newsgroups comp.lang.c
Subject Re: Can main() be called by itself?
Date 2015-08-14 11:46 +0100
Organization A noiseless patient Spider
Message-ID <87d1yqywoy.fsf@bsb.me.uk> (permalink)
References <39b9ef39-3874-4983-8165-035b51b78827@googlegroups.com> <hfGdndgRHve0DVDInZ2dnUU7-b2dnZ2d@posted.internetamerica>

Show all headers | View raw


gordonb.mj8yu@burditt.org (Gordon Burditt) writes:

>> Recently, I had a quiz onsite.
<snip>
>> It looks like below, but it is not exactly (I
>> cannot remember its exact form now).
>  
>> int main(int a)
>
> The appropriate function signatures for main() are:
> 	int main(void)
> OR
> 	int main(int argc, char **argv)
> and the above isn't equivalent to one of them.

Right, but an implementation can define others, so there is no reason to
reject the question on this basis.  (I know you are not doing that.  I'm
just clearing up a detail.)

<snip>
-- 
Ben.

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Can main() be called by itself? fl <rxjwg98@gmail.com> - 2015-08-13 16:51 -0700
  Re: Can main() be called by itself? Melzzzzz <mel@zzzzz.com> - 2015-08-14 01:58 +0200
  Re: Can main() be called by itself? James Kuyper <jameskuyper@verizon.net> - 2015-08-13 23:32 -0400
    Re: Can main() be called by itself? Keith Thompson <kst-u@mib.org> - 2015-08-14 11:14 -0700
  Re: Can main() be called by itself? Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2015-08-13 22:14 -0600
    Re: Can main() be called by itself? Keith Thompson <kst-u@mib.org> - 2015-08-14 11:15 -0700
  Re: Can main() be called by itself? gordonb.mj8yu@burditt.org (Gordon Burditt) - 2015-08-14 01:52 -0500
    Re: Can main() be called by itself? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-08-14 11:46 +0100
      Re: Can main() be called by itself? James Kuyper <jameskuyper@verizon.net> - 2015-08-14 07:54 -0400
        Re: Can main() be called by itself? Melzzzzz <mel@zzzzz.com> - 2015-08-14 14:19 +0200
          Re: Can main() be called by itself? David Brown <david.brown@hesbynett.no> - 2015-08-14 14:50 +0200
            Re: Can main() be called by itself? Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-08-16 10:39 -0700
      Re: Can main() be called by itself? gazelle@shell.xmission.com (Kenny McCormack) - 2015-08-14 12:32 +0000

csiph-web