Re: if I define a function with no parameters, should i put void?
From: Andrey Tarasevich (andreytarasevich_at_hotmail.com)
Date: 02/17/05
- Next message: Keith Thompson: "Re: how to get aliagned memory using malloc"
- Previous message: Keith Thompson: "Re: tanjent function - can someone check my code"
- In reply to: TTroy: "if I define a function with no parameters, should i put void?"
- Next in thread: Thomas Matthews: "Re: if I define a function with no parameters, should i put void?"
- Reply: Thomas Matthews: "Re: if I define a function with no parameters, should i put void?"
- Reply: TTroy: "Re: if I define a function with no parameters, should i put void?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 17 Feb 2005 10:33:45 -0800
TTroy wrote:
> For function definitions (not declarations/prototypes), is it necessary
> to put void in the emptry braces if the function is to receive no
> parameters? Does this turn any error checking off or cause any other
> effects?
No. In a function _definition_ empty '()' immediately means "no parameters".
-- Best regards, Andrey Tarasevich
- Next message: Keith Thompson: "Re: how to get aliagned memory using malloc"
- Previous message: Keith Thompson: "Re: tanjent function - can someone check my code"
- In reply to: TTroy: "if I define a function with no parameters, should i put void?"
- Next in thread: Thomas Matthews: "Re: if I define a function with no parameters, should i put void?"
- Reply: Thomas Matthews: "Re: if I define a function with no parameters, should i put void?"
- Reply: TTroy: "Re: if I define a function with no parameters, should i put void?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|