linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* default function parameters
@ 2005-09-09 18:43 _z33
  2005-09-09  6:47 ` Steve Graegert
  2005-09-09 12:43 ` Glynn Clements
  0 siblings, 2 replies; 16+ messages in thread
From: _z33 @ 2005-09-09 18:43 UTC (permalink / raw)
  To: linux-c-programming

   I had a wierd doubt today morning. If a function's return type is not 
defined, "C" takes it as returning "int". Now, what does it do when I 
don't specify the arguments of the function. Something like this -

   void sampleFunc ()
   {
	/* ... */
   }

   Is this equivalent to saying,

   void sampleFunc (void)
   {
	/* ... */
   }

_z33
-- 
I love TUX; well... that's an understatement :)


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2005-09-10  5:00 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-09 18:43 default function parameters _z33
2005-09-09  6:47 ` Steve Graegert
2005-09-09 19:38   ` _z33
2005-09-09  7:36     ` Steve Graegert
2005-09-09  8:46       ` _z33
2005-09-09  9:23         ` Jarmo
2005-09-09  9:42           ` Steve Graegert
2005-09-09  9:58             ` _z33
2005-09-09  9:50           ` _z33
2005-09-09  9:34         ` Steve Graegert
2005-09-09  9:44           ` _z33
2005-09-09 10:20             ` Steve Graegert
2005-09-09 13:00         ` Glynn Clements
2005-09-09 12:50     ` Glynn Clements
2005-09-09 12:43 ` Glynn Clements
2005-09-10  5:00   ` _z33

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).