Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
C Programming
»
Library Functions
What will the function rewind() do?
Reposition the file pointer to a character reverse.
Reposition the file pointer stream to end of file.
Reposition the file pointer to begining of that line.
Reposition the file pointer to begining of file.
Correct Answer:
Reposition the file pointer to begining of file.
Explanation:
rewind()
takes the file pointer to the beginning of the file. so that the next I/O operation will take place at the beginning of the file.
Example:
rewind(FilePointer);
Next Question→
More Questions from
Library Functions
Which standard library function will you use to find the last occurance of a character in a string in C?
Input/output function prototypes and macros are defined in which header file?
Can you use the fprintf() to display the output on the screen?
What is stderr?
What is the purpose of fflush() function.
What will the function randomize() do in Turbo C under DOS?
Does there any function exist to convert the int or float to a string?
What will be the output of the program? #include
#include
int main() { char dest[] = {97, 97, 0}; char src[] = "aaa"; int i; if((i = memcmp(dest, src, 2))==0) printf("Got it"); else printf("Missed"); return 0; }
What will be the output of the program? #include
int main() { int i; i = scanf("%d %d", &i, &i); printf("%d\n", i); return 0; }
What will be the output of the program? #include
#include
int main() { float i = 2.5; printf("%f, %d", floor(i), ceil(i)); return 0; }
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment
Join Discussion
Discussion & Comments