In order to read structures/records from a file, which function will you use?
Correct Answer: fread()
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
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++)
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 function do? int fn(unsigned int x) { int count = 0; for(; x!=0; x&=(x-1)) count++; return count; }
Following functions is used to extract formatted input from a file?
Output as a result of the following code snippet? main() { char *s='Hello World'; char s1[20], s2[20]; int len = sscanf(s,'%s',s1); printf('%s : %d', s1, len); }
How will you free the allocated memory?
How will you print \n on the screen?
What is the built in library function to adjust the allocated dynamic memory size?
Offset used in fseek() function call can be a negative number.