Tuesday, May 12, 2009

1. When the function below is called with a pointer to an open file that contains only three characters A, B and C which one of the following is printed

void listFile( FILE * fp )

int c;

while( c = fgetc(fp) != EOF )


printf(“%d”, c);




a. ABC1

b. 1111

c. The characters AB followed by an infinite number of C characters

d. 6566671

e. 0001

No comments: