From mboxrd@z Thu Jan 1 00:00:00 1970 From: _z33 Subject: default function parameters Date: Fri, 09 Sep 2005 11:43:44 -0700 Message-ID: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Sender: linux-c-programming-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: linux-c-programming@vger.kernel.org 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 :)