File Positioning: fseek(), ftell() and rewind() in C Notes in Hindi & English : फाइल पोजिशनिंग: fseek (SEEK_SET, SEEK_CUR, SEEK_END) और ftell और 20 महत्वपूर्ण MCQ प्रश्न (Rajasthan IT Exam)

Post a Comment

PGDCA, BCA, B-Tech, MCA, M-Tech, B.Sc computer science राजस्थान सूचना सहायक व कंप्यूटर शिक्षक विशेष नोट्स: इस अध्याय में हम File Positioning: fseek(), ftell() and rewind() in C (फाइल पोजिशनिंग: fseek (SEEK_SET, SEEK_CUR, SEEK_END) और ftell) की संपूर्ण थ्योरी, मुख्य तकनीकी बिंदु, तुलनात्मक तालिका और विगत परीक्षाओं के पैटर्न पर आधारित 20 अति-महत्वपूर्ण बहुविकल्पीय प्रश्न (MCQs) विस्तृत हिंदी व अंग्रेजी व्याख्या सहित पढ़ेंगे।

Overview: Random access in C file handling relies on fseek(), ftell(), and rewind() from <stdio.h> to inspect or reposition the internal file position indicator without sequential scanning. Using reference origins SEEK_SET, SEEK_CUR, and SEEK_END lets programs compute file sizes and jump directly to specific binary record offsets in O(1) time.

अध्याय सार: C फाइल हैंडलिंग में रैंडम एक्सेस के लिए <stdio.h> के fseek(), ftell() और rewind() फंक्शन्स का प्रयोग किया जाता है ताकि बिना क्रमिक स्कैन किए फाइल पॉइंटर की स्थिति देखी या बदली जा सके। SEEK_SET, SEEK_CUR और SEEK_END आधारों का उपयोग करके प्रोग्राम फाइल का आकार निकाल सकते हैं और सीधे किसी भी बाइनरी रिकॉर्ड के ऑफसेट पर पहुँच सकते हैं।

File Positioning: fseek(), ftell() and rewind() in C: Detailed Notes & Architecture (फाइल पोजिशनिंग: fseek (SEEK_SET, SEEK_CUR, SEEK_END) और ftell)

1. Random Access with fseek() and Origin Constants (fseek() और ओरिजिन कॉन्स्टैंट्स द्वारा रैंडम एक्सेस)

[EN] The prototype int fseek(FILE *stream, long int offset, int whence) repositions the file position indicator by offset signed bytes relative to whence. The three standard macros defined in <stdio.h> are SEEK_SET (0, start of file), SEEK_CUR (1, current position), and SEEK_END (2, end of file). A positive offset moves forward toward the end, whereas a negative offset with SEEK_CUR or SEEK_END moves backward toward the start. fseek() returns 0 on success and a non-zero value if the seek fails (such as seeking before byte 0 or on an unseekable pipe/terminal).

[HI] int fseek(FILE *stream, long int offset, int whence) प्रोटोटाइप वाला यह फंक्शन फाइल पॉइंटर को whence आधार से offset बाइट्स आगे या पीछे ले जाता है। <stdio.h> में परिभाषित तीन मानक मैक्रो हैं: SEEK_SET (0, फाइल की शुरुआत), SEEK_CUR (1, वर्तमान स्थिति) और SEEK_END (2, फाइल का अंत)। धनात्मक offset पॉइंटर को आगे बढ़ाता है, जबकि SEEK_CUR या SEEK_END के साथ ऋणात्मक offset पॉइंटर को पीछे ले जाता है। सफलता पर fseek() 0 लौटाता है और विफलता (जैसे बाइट 0 से पहले जाने या पाइप पर सीक करने) पर नॉन-जीरो मान देता है।

2. Measuring Position and File Size with ftell() (ftell() द्वारा स्थिति और फाइल का आकार मापना)

[EN] The long int ftell(FILE *stream) function reports the current offset in bytes from the beginning of the file for binary streams, returning -1L on failure. A classic pattern to measure file size in bytes is seeking to the end via fseek(fp, 0L, SEEK_END) and immediately calling long bytes = ftell(fp). Dividing bytes by sizeof(struct Record) yields the total number of stored records without reading them sequentially. Because standard ftell() returns a signed long, its range tops out at 2 GiB on 32-bit or Windows LLP64 systems, making fgetpos()/fsetpos() or 64-bit platform functions like _ftelli64()/ftello() necessary for huge files.

[HI] long int ftell(FILE *stream) बाइनरी स्ट्रीम के लिए फाइल की शुरुआत से वर्तमान स्थिति बाइट्स में बताता है और त्रुटि होने पर -1L लौटाता है। फाइल का आकार बाइट्स में मापने के लिए fseek(fp, 0L, SEEK_END) के बाद तुरंत long bytes = ftell(fp) कॉल किया जाता है। कुल बाइट्स को sizeof(struct Record) से विभाजित करके बिना पूरी फाइल पढ़े कुल रिकॉर्ड्स की संख्या जानी जा सकती है। चूंकि ftell() एक साइन्ड long लौटाता है, 32-बिट या Windows प्रणाली पर इसकी सीमा 2 GiB होती है, जिससे बड़ी फाइल्स के लिए fgetpos()/fsetpos() या 64-बिट विकल्प प्रयुक्त होते हैं।

3. Resetting Streams Using rewind() vs fseek() (rewind() बनाम fseek() से स्ट्रीम रीसेट करना)

[EN] The void rewind(FILE *stream) function moves the file position indicator back to the beginning of the file without returning an error status. Crucially, rewind(fp) is NOT strictly identical to fseek(fp, 0L, SEEK_SET) alone: rewind() also clears the stream's end-of-file (feof) and error (ferror) indicators, acting identically to (void)fseek(fp, 0L, SEEK_SET); clearerr(fp);. Because rewind() returns void, callers cannot directly detect if an unseekable stream rejected the rewind unless they inspect ferror(fp) afterward. For robust error handling in production C code, calling fseek(fp, 0L, SEEK_SET) and checking for a 0 return is preferred over rewind().

[HI] void rewind(FILE *stream) बिना कोई स्टेटस कोड लौटाए फाइल पॉइंटर को पुनः फाइल की शुरुआत (बाइट 0) पर ले जाता है। महत्वपूर्ण अंतर यह है कि rewind(fp) केवल fseek(fp, 0L, SEEK_SET) के बराबर नहीं है, बल्कि यह स्ट्रीम के feof और ferror इंडिकेटर्स को भी साफ करता है (जैसे clearerr(fp))। चूंकि rewind() void लौटाता है, इसलिए किसी नॉन-सीकेबल स्ट्रीम पर विफलता का पता इसके रिटर्न से सीधे नहीं चल पाता। मजबूत एरर-चेकिंग के लिए fseek(fp, 0L, SEEK_SET) का 0 रिटर्न जांचना अक्सर अधिक सुरक्षित माना जाता है।

4. In-Place Record Updates and Append Mode Caveat (इन-प्लेस रिकॉर्ड अपडेट और अपेंड मोड की सीमा)

[EN] To update the k-th 0-indexed fixed record in a "rb+" binary file, compute the byte offset as (long)k * sizeof(struct Rec), jump there with fseek(fp, offset, SEEK_SET), and write the modified struct using fwrite(). Notice that successful fread() advances the file pointer past the record just read, so before overwriting that same record, you MUST step back by fseek(fp, -(long)sizeof(struct Rec), SEEK_CUR). Another major exam trap involves append mode ("a" or "ab"): POSIX and ISO C guarantee that every write goes to the end of the file regardless of prior fseek() calls. In "a+" mode, fseek() affects where reads occur, while writes still forcibly jump to the file end.

[HI] "rb+" बाइनरी फाइल में k-वें (0-आधारित) रिकॉर्ड को सीधे अपडेट करने के लिए (long)k * sizeof(struct Rec) बाइट्स पर fseek(fp, offset, SEEK_SET) से जाकर fwrite() चलाया जाता है। याद रखें कि fread() रिकॉर्ड पढ़ने के बाद पॉइंटर को आगे बढ़ा देता है, इसलिए उसी रिकॉर्ड को ओवरराइट करने से पहले fseek(fp, -(long)sizeof(struct Rec), SEEK_CUR) से एक रिकॉर्ड पीछे लौटना अनिवार्य है। एक अन्य प्रमुख परीक्षा नियम अपेंड मोड ("a" या "ab") से जुड़ा है: इसमें पहले fseek() करने के बावजूद प्रत्येक राइट हमेशा फाइल के अंत में ही होता है। "a+" मोड में fseek() केवल पढ़ने की स्थिति बदल सकता है, जबकि लिखना फिर भी अंत में ही होगा।

Syntax, Formula & Technical Example (File Positioning: fseek(), ftell() and rewind() in C)

#include <stdio.h>
int main(void) {
    FILE *fp = fopen("data.bin", "rb+");
    if (!fp) return 1;
    fseek(fp, 0L, SEEK_END);
    long sz = ftell(fp);
    printf("Size = %ld bytes\n", sz);
    rewind(fp);
    printf("After rewind = %ld\n", ftell(fp));
    fclose(fp);
    return 0;
}

File Positioning: fseek(), ftell() and rewind() in C Quick Reference & Comparison Table

Function / ConstantMeaning / BehaviorReturn / Value
SEEK_SETOffset measured from file beginningInteger constant 0
SEEK_CUROffset measured from current positionInteger constant 1
SEEK_ENDOffset measured from end of fileInteger constant 2
ftell(fp)Reports current byte offset from startlong int bytes, or -1L on error

File Positioning: fseek(), ftell() and rewind() in C Top 20 Bilingual MCQs with Answers

Q1. What are the standard integer values of SEEK_SET, SEEK_CUR, and SEEK_END in <stdio.h> respectively?

(<stdio.h> में SEEK_SET, SEEK_CUR और SEEK_END के मानक पूर्णांक मान क्रमशः क्या होते हैं?)

(A) 0, 1, 2

(B) -1, 0, 1

(C) 1, 2, 3

(D) 0, -1, 1

Correct Answer: (A)

[EN] In standard <stdio.h>, SEEK_SET is 0, SEEK_CUR is 1, and SEEK_END is 2.

[HI] मानक <stdio.h> में SEEK_SET का मान 0, SEEK_CUR का 1 और SEEK_END का 2 होता है।

Q2. What does fseek(fp, 0L, SEEK_SET) return when it succeeds?

(सफल होने पर fseek(fp, 0L, SEEK_SET) क्या मान लौटाता है?)

(A) The new byte offset

(B) 0

(C) EOF (-1)

(D) 1

Correct Answer: (B)

[EN] fseek() returns 0 upon success and a non-zero value if the seek fails.

[HI] fseek() सफलता पर 0 और विफलता पर नॉन-जीरो मान लौटाता है।

Q3. Which two operations are both performed internally by calling rewind(fp)?

(rewind(fp) कॉल करने पर आंतरिक रूप से कौन-से दो कार्य एक साथ होते हैं?)

(A) Moves pointer to EOF AND returns file size

(B) Deletes file content AND moves to byte 0

(C) Moves file pointer to byte 0 AND clears EOF and error indicators

(D) Flushes buffers AND closes the file

Correct Answer: (C)

[EN] rewind(fp) repositions the pointer to the beginning and clears both feof and ferror flags, unlike standalone fseek().

[HI] rewind(fp) पॉइंटर को बाइट 0 पर लाने के साथ-साथ feof और ferror फ्लैग्स को भी साफ करता है।

Q4. What is the return type of ftell(FILE *fp)?

(ftell(FILE *fp) का रिटर्न टाइप क्या होता है?)

(A) void

(B) FILE*

(C) int

(D) long int

Correct Answer: (D)

[EN] ftell() returns a signed long int representing the current offset in bytes, or -1L on failure.

[HI] ftell() बाइट्स में वर्तमान स्थिति दर्शाने वाला long int लौटाता है, या त्रुटि पर -1L देता है।

Q5. After executing fseek(fp, 0L, SEEK_END) on a 120-byte binary file, what will ftell(fp) return?

(120 बाइट की बाइनरी फाइल पर fseek(fp, 0L, SEEK_END) चलाने के बाद ftell(fp) क्या लौटाएगा?)

(A) 119

(B) 0

(C) 120

(D) -1

Correct Answer: (C)

[EN] SEEK_END with offset 0 places the indicator right at the end of the 120-byte file, so ftell() returns 120.

[HI] 0 ऑफसेट के साथ SEEK_END पॉइंटर को 120 बाइट की फाइल के ठीक अंत में ले जाता है, अतः ftell() 120 लौटाता है।

Q6. How do you jump directly to the 5th record (0-based index 4) of struct Student in a binary file?

(बाइनरी फाइल में struct Student के 5वें रिकॉर्ड (0-आधारित इंडेक्स 4) पर सीधे कैसे जाया जाता है?)

(A) fseek(fp, 5L * sizeof(struct Student), SEEK_SET);

(B) fseek(fp, 4L * sizeof(struct Student), SEEK_SET);

(C) fseek(fp, 4L, SEEK_CUR);

(D) ftell(fp, 4L * sizeof(struct Student));

Correct Answer: (B)

[EN] Zero-based index 4 begins after the first 4 records, i.e. 4 * sizeof(struct Student) bytes from SEEK_SET.

[HI] 0-आधारित इंडेक्स 4 से पहले 4 रिकॉर्ड्स होते हैं, इसलिए SEEK_SET से 4 * sizeof(struct Student) बाइट्स पर सीक किया जाता है।

Q7. In a file opened with "rb+", you just called fread(&r, sizeof(r), 1, fp) to inspect a record. Which fseek() call steps back to overwrite that same record?

("rb+" मोड में खुलने वाली फाइल से fread(&r, sizeof(r), 1, fp) द्वारा एक रिकॉर्ड पढ़ने के बाद उसी रिकॉर्ड को ओवरराइट करने के लिए कौन-सा fseek() कॉल पीछे ले जाएगा?)

(A) fseek(fp, sizeof(r), SEEK_CUR);

(B) fseek(fp, -(long)sizeof(r), SEEK_SET);

(C) fseek(fp, -(long)sizeof(r), SEEK_CUR);

(D) rewind(fp);

Correct Answer: (C)

[EN] Because fread() advanced the pointer by sizeof(r), a negative offset of -(long)sizeof(r) from SEEK_CUR moves back to that record's start.

[HI] fread() ने पॉइंटर को sizeof(r) आगे बढ़ा दिया है, अतः SEEK_CUR से -(long)sizeof(r) ऑफसेट देकर उसी रिकॉर्ड की शुरुआत पर लौटा जाता है।

Q8. What happens if you open a file in append mode ("ab"), call fseek(fp, 0L, SEEK_SET), and then call fwrite()?

(यदि आप किसी फाइल को अपेंड मोड ("ab") में खोलकर fseek(fp, 0L, SEEK_SET) करें और फिर fwrite() चलाएं, तो डेटा कहाँ लिखा जाएगा?)

(A) It causes a segmentation fault

(B) At the end of the file regardless of fseek()

(C) fwrite() returns 0 and writes nothing

(D) At byte 0, overwriting the beginning

Correct Answer: (B)

[EN] In append modes ("a", "ab", "a+"), all write operations always occur at the current end of the file, ignoring fseek().

[HI] अपेंड मोड्स ("a", "ab", "a+") में fseek() के बावजूद सभी राइट ऑपरेशन्स हमेशा फाइल के अंत में ही होते हैं।

Q9. What does fseek(fp, -10L, SEEK_SET) cause because the target position lies before the start of the file?

(फाइल की शुरुआत से पहले जाने वाले fseek(fp, -10L, SEEK_SET) कॉल का क्या परिणाम होता है?)

(A) It fails and returns a non-zero value

(B) It returns -10

(C) It wraps around to the end of the file

(D) It automatically expands the file by 10 bytes

Correct Answer: (A)

[EN] Seeking before byte 0 is invalid; fseek() fails and returns a non-zero error code.

[HI] बाइट 0 से पहले सीक करना अवैध है; fseek() विफल होकर नॉन-जीरो त्रुटि कोड लौटाता है।

Q10. Which function returns void (no value)?

(निम्न में से किस फंक्शन का रिटर्न टाइप void (कोई मान नहीं) होता है?)

(A) fgetpos()

(B) ftell()

(C) fseek()

(D) rewind()

Correct Answer: (D)

[EN] void rewind(FILE *stream) does not return a status code, unlike fseek() (int) and ftell() (long).

[HI] void rewind(FILE *stream) कोई स्टेटस कोड नहीं लौटाता, जबकि fseek() int और ftell() long लौटाते हैं।

Q11. What does ftell(fp) return if an error occurs (for instance, on a stream that does not support positioning)?

(यदि किसी कारण त्रुटि हो (जैसे ऐसी स्ट्रीम जो पोजिशनिंग सपोर्ट न करे), तो ftell(fp) क्या लौटाता है?)

(A) 0L

(B) -1L

(C) 1L

(D) NULL

Correct Answer: (B)

[EN] On error, ftell() returns -1L and typically sets errno.

[HI] त्रुटि होने पर ftell() -1L लौटाता है और सामान्यतः errno सेट करता है।

Q12. Which C library functions overcome the 2 GiB limit of signed 32-bit long in fseek()/ftell() for portable large-file positioning?

(बड़ी फाइलों में 32-बिट साइन्ड long की 2 GiB सीमा से बचने के लिए मानक C में कौन-से फंक्शन्स प्रयुक्त होते हैं?)

(A) fgetpos() and fsetpos()

(B) getc() and putc()

(C) rewind() and clearerr()

(D) fgets() and fputs()

Correct Answer: (A)

[EN] fgetpos() and fsetpos() use fpos_t, which standard implementations make 64-bit capable even when long is 32-bit.

[HI] fgetpos() और fsetpos() fpos_t टाइप का उपयोग करते हैं जो 32-बिट long वाले सिस्टम पर भी बड़ी फाइलों की स्थिति संभाल सकता है।

Q13. If a stream is currently at byte 50, where does fseek(fp, 20L, SEEK_CUR) position it?

(यदि स्ट्रीम वर्तमान में बाइट 50 पर है, तो fseek(fp, 20L, SEEK_CUR) उसे किस बाइट पर ले जाएगा?)

(A) 20 bytes before EOF

(B) Byte 70

(C) Byte 20

(D) Byte 30

Correct Answer: (B)

[EN] SEEK_CUR adds the offset (+20) to the current position (50), resulting in byte 70.

[HI] SEEK_CUR वर्तमान स्थिति (50) में +20 जोड़कर पॉइंटर को बाइट 70 पर ले जाता है।

Q14. What happens to the EOF indicator after a successful fseek() call on a stream?

(किसी स्ट्रीम पर fseek() के सफल होने के बाद उसके EOF इंडिकेटर पर क्या प्रभाव पड़ता है?)

(A) fseek() clears the end-of-file indicator

(B) fseek() permanently locks the EOF indicator

(C) fseek() closes and reopens the file

(D) fseek() writes an EOF byte into the file

Correct Answer: (A)

[EN] Per the ISO C standard, a successful fseek() clears the end-of-file indicator and undoes any effects of ungetc().

[HI] ISO C मानक के अनुसार सफल fseek() कॉल स्ट्रीम के EOF इंडिकेटर को साफ कर देता है।

Q15. Why is ftell() reliable for exact byte offsets mainly on binary streams rather than Windows text streams?

(Windows टेक्स्ट स्ट्रीम्स की तुलना में ftell() सटीक बाइट ऑफसेट केवल बाइनरी स्ट्रीम्स पर ही विश्वसनीय क्यों होता है?)

(A) Text streams translate \r\n to \n, so byte counts in RAM do not match raw disk bytes

(B) Text streams have no file pointer

(C) Text streams store floats in reverse order

(D) ftell() always returns 0 on text files

Correct Answer: (A)

[EN] Because CRLF translation alters byte counts on text streams, ISO C guarantees ftell() byte-offset arithmetic strictly for binary streams.

[HI] टेक्स्ट स्ट्रीम्स में \r\n रूपांतरण के कारण डिस्क बाइट्स और पढ़े गए कैरेक्टर्स की संख्या मेल नहीं खाती; इसलिए मानक C बाइट-ऑफसेट की गारंटी केवल बाइनरी स्ट्रीम पर देता है।

Q16. Which of the following statements about C file positioning is NOT true?

(C फाइल पोजिशनिंग के बारे में निम्नलिखित में से कौन-सा कथन सत्य नहीं है?)

(A) fseek() accepts negative offsets with SEEK_CUR and SEEK_END

(B) SEEK_END moves relative to the end of the file

(C) ftell(fp) returns the current offset as a long integer

(D) rewind(fp) returns 0 on success and -1 on error

Correct Answer: (D)

[EN] rewind() has return type void and returns no value at all; it is fseek() that returns 0 on success and non-zero on failure.

[HI] rewind() का रिटर्न टाइप void है और वह कोई मान नहीं लौटाता; सफलता पर 0 लौटाने का काम fseek() करता है।

Q17. Within File Positioning: fseek(), ftell() and rewind() in C, which function / constant directly maps to: "Offset measured from file beginning"?

(File Positioning: fseek(), ftell() and rewind() in C में कौन सा Function / Constant सीधे "Offset measured from file beginning" से संबंधित है?)

(A) ftell(fp)

(B) SEEK_END

(C) SEEK_SET

(D) SEEK_CUR

Correct Answer: (C)

[EN] In File Positioning: fseek(), ftell() and rewind() in C, 'SEEK_SET' handles 'Offset measured from file beginning' (Integer constant 0).

[HI] File Positioning: fseek(), ftell() and rewind() in C में 'SEEK_SET' का कार्य/विवरण 'Offset measured from file beginning' (Integer constant 0) है।

Q18. Which option accurately describes 'SEEK_CUR' in File Positioning: fseek(), ftell() and rewind() in C?

(File Positioning: fseek(), ftell() and rewind() in C के संदर्भ में 'SEEK_CUR' की सही विशेषता कौन सी है?)

(A) Offset measured from current position

(B) Offset measured from end of file

(C) Reports current byte offset from start

(D) Offset measured from file beginning

Correct Answer: (A)

[EN] 'SEEK_CUR' provides 'Offset measured from current position' — key point: Integer constant 1.

[HI] 'SEEK_CUR' का मुख्य विवरण 'Offset measured from current position' है (Integer constant 1)।

Q19. In File Positioning: fseek(), ftell() and rewind() in C, identify the correct parameter for the specification: "Offset measured from end of file".

(File Positioning: fseek(), ftell() and rewind() in C में "Offset measured from end of file" विवरण किस विकल्प के लिए सही है?)

(A) SEEK_END

(B) SEEK_CUR

(C) ftell(fp)

(D) SEEK_SET

Correct Answer: (A)

[EN] 'SEEK_END' corresponds to 'Offset measured from end of file' (Integer constant 2).

[HI] 'SEEK_END' का संबंध 'Offset measured from end of file' (Integer constant 2) से है।

Q20. Considering File Positioning: fseek(), ftell() and rewind() in C, what key behavior defines 'ftell(fp)'?

(File Positioning: fseek(), ftell() and rewind() in C में 'ftell(fp)' की मुख्य भूमिका या मान क्या है?)

(A) Offset measured from file beginning

(B) Offset measured from current position

(C) Reports current byte offset from start

(D) Offset measured from end of file

Correct Answer: (C)

[EN] 'ftell(fp)' represents 'Reports current byte offset from start' (long int bytes, or -1L on error).

[HI] 'ftell(fp)' का अर्थ/मान 'Reports current byte offset from start' है (long int bytes, or -1L on error)।

File Positioning: fseek(), ftell() and rewind() in C — Exam FAQs

Q1: Can fseek() move past the current end of a file opened for writing?

क्या राइट मोड में खुली फाइल में fseek() फाइल के वर्तमान अंत से आगे जा सकता है?

[EN] Yes; on POSIX and Windows systems, seeking past EOF and writing creates a zero-filled gap (or sparse file hole) between the old end and the newly written bytes.

[HI] हाँ; POSIX और Windows सिस्टम पर EOF से आगे सीक करके लिखने से पुराने अंत और नए डेटा के बीच शून्य से भरा गैप (स्पार्स होल) बन जाता है।

Q2: When should I use fseek(fp, 0, SEEK_SET) instead of rewind(fp)?

मुझे rewind(fp) के बजाय fseek(fp, 0, SEEK_SET) कब उपयोग करना चाहिए?

[EN] Use fseek() whenever you want to verify that the stream actually supports seeking (checking return == 0), because rewind() returns void and silently hides failure.

[HI] जब आपको यह जांचना हो कि स्ट्रीम पर सीकिंग सफल हुई या नहीं (रिटर्न == 0), तब fseek() का उपयोग करें क्योंकि rewind() कोई रिटर्न वैल्यू नहीं देता।

Q3: What is the difference between fseek() and lseek()?

fseek() और lseek() के बीच क्या अंतर है?

[EN] fseek() is a standard buffered ISO C library function working on FILE* streams, whereas lseek() is a POSIX system call operating on low-level integer file descriptors (int fd).

[HI] fseek() बफर्ड मानक ISO C फंक्शन है जो FILE* स्ट्रीम पर चलता है, जबकि lseek() POSIX सिस्टम कॉल है जो लो-लेवल इंटीजर फाइल डिस्क्रिप्टर (int fd) पर कार्य करता है।

Related Posts

  • Loading related posts...

Post a Comment

Search Topic Notes & 20 MCQs (Hindi / English)