is this definition old-style or new-style

From: G Fernandes (ge.fernandes_at_gmail.com)
Date: 02/27/05


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



Relevant Pages

  • Re: is this definition old-style or new-style
    ... > It seems like it fits the description of either type. ... > compiler know the difference? ... Niether, int is a keyword, and there is not function declaration going on ... int PROCEDURE_NAME(int length, int factor, int multiple) ...
    (comp.lang.c)
  • Re: is this definition old-style or new-style
    ... > It seems like it fits the description of either type. ... > compiler know the difference? ... int (int length, int factor, int multiple) ...
    (comp.lang.c)
  • TableAdapter, INNER JOINs, stored procs, and problems with Update
    ... I have a stored procedure that uses JOINs to return columns from multiple ... I also have another stored proc that that takes a series of params ... @ac2 int, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: More optimal version of this code
    ... > I am trying to optimise one particular function in SSE2- I am not ... > int mulcoeff ... Matt had multiple useful ideas for a P4 implementation! ... If you are not the intended recipient, ...
    (comp.lang.asm.x86)
  • [PATCH] ehea: Optional TX/RX path optimized for SMP
    ... can sort TCP traffic to multiple receive queues to be processed by ... the driver in parallel on multiple CPUs. ... This alternative packet processing functionality leads to ... module_param(msg_level, int, 0); ...
    (Linux-Kernel)