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.
page revision: 0, last edited: 01 Apr 2010 00:05