Function Declaration
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.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License