Question: This is C PROGRAMMING #include int main(int argc, const char * argv[]) { { FILE *infile; char c; infile = fopen (test.in, r); if (infile

This is C PROGRAMMING

#include

int main(int argc, const char * argv[]) {

{

FILE *infile;

char c;

infile = fopen ("test.in", "r");

if (infile == NULL)

{

printf ("Could not open file test.in ");

return 1;

}

while (! feof(infile) )

{

c = getc(infile);

if ( !isdigit (c) )

putchar(c);

} /* end while */

return 0;

} /* end main */

}

Please make the following assumption:

File test.in exists and contains the following data:

J2A3ME4S5 4B2O0N78D90

( Note the only space in the above data is between the 5 and the 4.)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!