Re: ANSI C, type composition, constant arrays in function arguments

2008-09-21 Thread Mikoláš Janota
of writing a constant size for an array parameter if the typechecker throws it away? mikolas 2008/9/22 Andreas Schwab <[EMAIL PROTECTED]>: > "Mikoláš Janota" <[EMAIL PROTECTED]> writes: > >> However, the following declarations >> void p(int p[30]); >>

ANSI C, type composition, constant arrays in function arguments

2008-09-21 Thread Mikoláš Janota
According to the ANSI C standard, functions' respective arguments have to be compatible for the function types to be compatible (6.7.5.3). However, the following declarations void p(int p[30]); void p(int p[4]); do not yield a warning. -- Mikoláš Janota M. Sc. School of Computer Scienc