main()
{
char string[]="Hello World";
display(string);
}
void display(char *string)
{
printf("%s",string);
}
Compiler will issue an error or warning to the above code. Because there is no function prototype, compiler will assume "int display(int)" for display()'s prototype. Therefore, there is a prototype conflicting.
沒有留言:
張貼留言