10. Code:
FILE *f = fopen( fileName, "r" );
readData( f );
if( ???? )
{
puts( "End of file was reached" );
}
--
Warm regards
Nithyaselvan R
Which one of the following represents a semantically legal function definition in Standard C?
(a)
int count_digits (const char * buf)
{
assert(buf != NULL);
int cnt = 0, i;
for (i = 0; buf[i] != '\0'; i++)
if (isdigit(buf[i]))
cnt++;
return cnt;
(b)
int count_digits (const char * buf) {
int cnt = 0;
assert(buf != NULL);
for (int i = 0; buf[i] != '\0'; i++)
if (isdigit(buf[i]))
cnt++;
return cnt;
}
--
Thanks & Regards
Check Answer for question 81 .
Did u get this question and did u answer this correctly ????
Choice 5
The array will be initialized with the numbers 0 through 4.(correct)
Hi guys...Verify the following questions. These options seems to be correct.
10. a & b
14. a & c
62. b
98. a & b
156. c
160. e
168. d