Warning: implode(): Invalid arguments passed in /www/wwwroot/jobquiz.info/mdiscuss.php on line 336
Offset used in fseek() function call can be a negative number. ?->(Show Answer!)
Question Set

1. Offset used in fseek() function call can be a negative number.



Ask Your Doubts Here

Type in
(Press Ctrl+g to toggle between English and the chosen language)

Comments

  • By: guest on 01 Jun 2017 06.02 pm
    True, offset in fseek() function can be a negative number. It makes the file pointer to move backwards from the current position. Declaration: retval = fseek( fp, offset, from ); Where: FILE *fp; = points to the file on which I/O is to be repositioned. long offset; = is an integer giving the number of bytes to move forward or backward in the file. This may be positive or negative. int from; = is one of the manifests SEEK_SET, SEEK_CUR, or SEEK_END. int retval; = is non-zero if the seek operation was invalid (e.g. on a file not opened with a "b" option); otherwise, the return value is zero.
Show Similar Question And Answers
QA->If function inside another function is called a _____ Function....
QA->P can do a work in the same time in which Q and R together can do it. If P and Q work together, the work can be completed in 10 days. R alone needs 50 days to complete the same work. then Q alone can do it in....
QA->The process where the inner pages of a section is deliberately printed offset slightly towards spine fold ?....
QA->If in a certain language CHAMPION is coded as HCMAIPNO how can NEGATIVE coded that code?....
QA->P,Q and R together earn Rs.1620 in 9 days. P and R can earn Rs.600 in 5 days. Q and R in 7 days can earn Rs. How much amount does R can earn per day?....
MCQ->Offset used in fseek() function call can be a negative number.....
MCQ->If the file 'source.txt' contains a line "Be my friend" which of the following will be the output of below program? #include<stdio.h> int main() { FILE fs, ft; char c[10]; fs = fopen("source.txt", "r"); c[0] = getc(fs); fseek(fs, 0, SEEK_END); fseek(fs, -3L, SEEK_CUR); fgets(c, 5, fs); puts(c); return 0; }....
MCQ->Consider the following statements about conditions that make a metal semiconductor contact rectifying N type semiconductor with work function φs more than work function φM of metalN type semiconductor with work function φs less than work function φM of metalP type semiconductor with work function φs more than work function φM of metalP type semiconductor with work function φs less than work function φM of metal. Of these statements....
MCQ->Which of the following statements are correct about functions used in C#.NET? Function definitions cannot be nested. Functions can be called recursively. If we do not return a value from a function then a value -1 gets returned. To return the control from middle of a function exit function should be used. Function calls can be nested.....
MCQ->We should not read after a write to a file without an intervening call to fflush(), fseek() or rewind()....
Terms And Service:We do not guarantee the accuracy of available data ..We Provide Information On Public Data.. Please consult an expert before using this data for commercial or personal use | Powered By:Omega Web Solutions
© 2002-2017 Omega Education PVT LTD...Privacy | Terms And Conditions
Question ANSWER With Solution