i keep getting an error with this script
the error is "missing prototype for strcmp"Code:#include <stdio.h> int main() { char color[10]; printf("What wire do you want to cut?\n"); printf("Red, blue or yellow?: "); scanf( "%s", &color ); if ( strcmp (color[10], "blue") == 0 ) { printf("Correct!!!\n"); getchar() } else { printf("Sorry that was incorrect.\n"); printf("Press enter to close."); getchar(); }
can anyone help me?