Re: function prototype vs function declaration
- From: "Ravishankar S" <ravishankar.s@xxxxxxxxxxxx>
- Date: Tue, 18 Dec 2007 18:49:21 +0530
However it is better to accurately explain the language as it is
formalised rather than as it might be commonly used. Flushing stdin,
voiding main and using gets seem to be distressingly common in real
world usage, but a tutorial that uses them other than to describe their
dangers, would be considered of very low quality.
Point taken. Though this not of the same stature are of writing "void main"
and "fflush(stdin)".
I was thinking that my conclusions are fairly accurate!
But I cannot help but note that what you have mentioned may also be
achieved by using void pointer's.
No. void pointers are quite different from function pointers. Please
read a good textbook before continuing on your tutorial.
Please recommend me a good book, other than K&R which covers these points.
Thank you.
If I am not mistaken a void* must be capabale of storing any pointer
(generic pointer) including
a pointer to a function...
.
- Follow-Ups:
- Re: function prototype vs function declaration
- From: George Peter Staplin
- Re: function prototype vs function declaration
- From: CBFalconer
- Re: function prototype vs function declaration
- From: santosh
- Re: function prototype vs function declaration
- From: pete
- Re: function prototype vs function declaration
- From: James Kuyper
- Re: function prototype vs function declaration
- From: Richard Heathfield
- Re: function prototype vs function declaration
- References:
- function prototype vs function declaration
- From: Ravishankar S
- Re: function prototype vs function declaration
- From: Richard Heathfield
- Re: function prototype vs function declaration
- From: Ravishankar S
- Re: function prototype vs function declaration
- From: santosh
- Re: function prototype vs function declaration
- From: Ravishankar S
- Re: function prototype vs function declaration
- From: Richard Heathfield
- Re: function prototype vs function declaration
- From: Ravishankar S
- Re: function prototype vs function declaration
- From: santosh
- function prototype vs function declaration
- Prev by Date: Re: object file size is reduced after build
- Next by Date: Re: [1/2OT] a buggy TCP client program
- Previous by thread: Re: function prototype vs function declaration
- Next by thread: Re: function prototype vs function declaration
- Index(es):
Relevant Pages
|