Code:#include <stdio.h> //x is a global variable int x; //QUESTION A: /** The parseInt() function returns a 1 (one) if the C string parameter num_str is formatted as a valid integer, otherwise the function returns a 0 (zero). */ int parseInt(char num_str[]) { int i; for (; num_str[i] != '\0'; i++) if( num_str[i] == '+' || num_str[i] == '-' ) i++; for (num_str [i] == '\0') return 0; return 1; } int i; //QUESTION A: for (i = 0; num_str[i] != '\0'; i++) if( num_str[i] < '0' || num_str[i] > '9' ) return 0; return 1; } int main() { char str[100]; printf("Please enter a list of integers or EOF" " to finish (example: 897 8 -3 EOF).\n" ); while ( 1 ) { scanf( "%s", str ); if ( feof(stdin) ) break; printf( "%s is ", str ); if ( !parseInt(str) ) printf( "NOT " ); printf( "is a valid integer.\n" ); } return