void display(char * str){ printf(\"%s: Missing file\\n\", str); } int main(int argc, char **argv) { int longIndex, opt = 0; const char *optString = \"h?
const char *optString = "h?";
Above line replace with following line
const char *optString = "h\?";
this is the literal of question mark in C language