Question Set

1. ftell() returns the current position of the pointer in a file stream.



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
    The ftell() function shall obtain the current value of the file-position indicator for the stream pointed to by stream. Example: #include <stdio.h> int main(void) { FILE *stream; stream = fopen("MYFILE.TXT", "w+"); fprintf(stream, "This is a test"); printf("The file pointer is at byte %ld\n", ftell(stream)); fclose(stream); return 0; }
Show Similar Question And Answers
QA->Speed of a swimmer when moving in the direction perpendicular to the direction of the current is 16 km/h, speed of the current is 3 km/h. So the speed of the swimmer against the current will be (in km/h):....
QA->A man who can swim 48 m/minute in still water. He swims 200 m against the current and 200 m with the current. If the difference between those two times is 10 minutes, what is the speed of the current?....
QA->Speed of a speed-boat when moving in the direction perpendicular to the direction of the current is 25 km/h, speed of the current is 5 km/h. So, the speed of the boat against the current will be:....
QA->Speed of a speed-boat when moving in the direction perpendicular to the direction of the current is 25 km/h, speed of the current is 5 km/h. So, the speed of the boat against the current will be:....
QA->A man who can swim 48 m/minute in still water. He swims 200 m against the current and 200 m with the current. If the difference between those two times is 10 minutes, what is the speed of the current?....
MCQ->Which of the following statements correctly declare a function that receives a pointer to pointer to a pointer to a float and returns a pointer to a pointer to a pointer to a pointer to a float?....
MCQ->ftell() returns the current position of the pointer in a file stream.....
MCQ->Which two statements are true about comparing two instances of the same class, given that the equals() and hashCode() methods have been properly overridden? If the equals() method returns true, the hashCode() comparison == must return true. If the equals() method returns false, the hashCode() comparison != must return true. If the hashCode() comparison == returns true, the equals() method must return true. If the hashCode() comparison == returns true, the equals() method might return true.....
MCQ->Declare the following statement? "A pointer to a function which receives an int pointer and returns float pointer".....
MCQ->Which of the following statements are correct about the below declarations? char p = "Sanjay"; char a[] = "Sanjay"; 1: There is no difference in the declarations and both serve the same purpose. 2: p is a non-const pointer pointing to a non-const string, whereas a is a const pointer pointing to a non-const pointer. 3: The pointer p can be modified to point to another string, whereas the individual characters within array a can be changed. 4: In both cases the '\0' will be added at the end of the string "Sanjay".....
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