27-06-2016, 12:26 PM
Rule 12.5 applies to all function parameters declared as "array of type". Array declarators always have an "array type", regardless as to whether the size is present or not (See 6.7.5.2 of the C99 standard). The standard uses the phrases "array type" and "array of type" interchangeably.
Therefore this rule applies to both sized and unsized types and your second example violates 12.5.
Therefore this rule applies to both sized and unsized types and your second example violates 12.5.
Posted by and on behalf of the MISRA C Working Group