Sorry I know this has been posted before but the solutions to the other problems doesn't seem to work with this. Code: char readABchoice() { scanf( "%c", &input ); getchar(); if( input == 'A' || input == 'a' || input == 'B' || input == 'b' ){ } else{ printf( "(A/a or B/b): " ); } return input; } it says that theres a conflicting type for 'readABchoice' i already have a function protocol for it. and input is a global variable that i've declared up above main. any help would be great thanks
But there could be a possibility that your prototype is not matching the defination. But if you really want exact reason then give 1 small compilable code which we can check.