A simple typing question.

Ronald Guilmette rfg at paris.ics.uci.edu
Tue Feb 13 20:17:50 AEST 1990


/* gcc 1.36 question 891215_02

Should the following code generate either errors or warnings when compiled
with an ANSI conformant C compiler?

The question really is: "What is the type of a?"  Is the type of `a'
simply `int *' or is it `int * const'?

*/

int *p;

void function (int a[])
{
  a = p;
}



More information about the Comp.std.c mailing list