is this definition old-style or new-style
From: G Fernandes (ge.fernandes_at_gmail.com)
Date: 02/27/05
- Next message: Gregory Pietsch: "Re: removing substring from string"
- Previous message: Walter Roberson: "Re: Beginner's question"
- Next in thread: DHOLLINGSWORTH2: "Re: is this definition old-style or new-style"
- Reply: DHOLLINGSWORTH2: "Re: is this definition old-style or new-style"
- Reply: Lawrence Kirby: "Re: is this definition old-style or new-style"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 27 Feb 2005 09:58:27 -0800
Is the following an old-style(K&R) function definition or a new
style(C89)?
int (length, factor, multiple)
{
/* ... code ... */
return length;
}
It seems like it fits the description of either type. How does the
compiler know the difference?
Thanks
- Next message: Gregory Pietsch: "Re: removing substring from string"
- Previous message: Walter Roberson: "Re: Beginner's question"
- Next in thread: DHOLLINGSWORTH2: "Re: is this definition old-style or new-style"
- Reply: DHOLLINGSWORTH2: "Re: is this definition old-style or new-style"
- Reply: Lawrence Kirby: "Re: is this definition old-style or new-style"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|