Offset used in fseek() function call can be a negative number.
Correct Answer: foo = fopen ("bar.txt", "a");
Explanation:
Note: This Question is unanswered, help us to find answer for this one
C Programming Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More C Programming MCQ Questions
What is the built in library function to adjust the allocated dynamic memory size?
How will you print \n on the screen?
How will you free the allocated memory?
The keyword ‘break’ cannot be simply used within __?
Following functions is used to extract formatted input from a file?
Following function do? int fn(unsigned int x) { int count = 0; for(; x!=0; x&=(x-1)) count++; return count; }
Output of the following program? #include main() { int n = 5; assert(n > 3); //statement 1 n = n+2; assert(n > 7);//statement 2 return 0; }
Following statement where str is a character array and the statement is supposed to traverse through the whole character string str? for(i=0;str[i];i++)
In order to read structures/records from a file, which function will you use?