EOF is not a character (in most modern operating systems). It is simply a condition that applies to a file stream when the end of the stream is reached. The confusion arises because a user may signal EOF for console input by typing a special character (e.g Control-D in Unix, Linux, et al), but this character is not seen by the running program, it is caught by the operating system which in turn signals EOF to the process.
Note: in some very old operating systems EOF was a character, e.g. Control-Z in CP/M, but this was a crude hack to avoid the overhead of maintaining actual file lengths in file system directories.
Related Posts:
- How to use symbols of extended ASCII table in C?
- Compiler Error “void value not ignored as it ought to be” in C programming [duplicate]
- C compiler for Windows?
- Why the range of int is -32768 to 32767?
- max value of integer
- Invisible characters – ASCII
- Convert an int to ASCII character
- What is EOF in the C programming language?
- What is EOF in the C programming language?
- Output single character in C
- c array – warning: format not a string literal
- Getting The ASCII Value of a character in a C# string
- How to use EOF to run through a text file in C?
- Valgrind Invalid free() / delete / delete[] / realloc() in C
- C’s printf and fprintf(stdout,) are not printing
- error: unknown type name ‘bool’
- How do you read scanf until EOF in C?
- How to display hexadecimal numbers in C?
- Reaching EOF with fgets
- What is a vertical tab?
- Example of realpath function in C
- How to convert integers to characters in C?
- How to print a int64_t type in C
- What is a segmentation fault?
- How can I convert MP3 file to a Base64 encoded string? [closed]
- What is an unsigned char?
- What is a Memory Heap?
- 403 Forbidden vs 401 Unauthorized HTTP responses
- Advanced AREL or just Rails Query for has_many through search by association
- char *array and char array[]
- “If not” condition statement in python
- Get a substring of a char*
- How can I sort a dictionary by key?
- What does ERR_SPDY_PROTOCOL_ERROR mean in nginx?
- What causes the Broken Pipe Error?
- what is stack smashing (C)?
- “Initializer element is not constant” in C
- How do you do exponentiation in C?
- How do I convert a list of ascii values to a string in python?
- Time Complexity of Prims Algorithm?
- Printing long int value in C
- Ping – Request timed out
- How do I remove version tracking from a project cloned from git?
- Undefined reference to pow( ) in C, despite including math.h [duplicate]
- The difference between stdout and STDOUT_FILENO
- Convert Python program to C/C++ code?
- What’s the difference between & and && in MATLAB?
- azure error 502 – Web server received an invalid response while acting as a gateway or proxy server
- What does ** do in C language?
- What is a Ray ID (Cloudflare)?
- Is “argv[0] = name-of-executable” an accepted standard or just a common convention?
- Creating a new directory in C
- How do I get a list of built-in data sets in R?
- Alternative to ui-grid(doesn’t support angular2/4)
- gcc/g++: “No such file or directory”
- Tool for drawing parse trees?
- Expected declaration specifier error in function
- Multiple definition of … linker error
- Does sizeof return the number of bytes or the number of octets of a type in C?
- Passing an array by reference in C?
- What does “Permission denied” “Id returned 1 exit status” mean?
- Memory Clobbering Error
- R dates “origin” must be supplied
- How to pass 2D array (matrix) in a function in C?
- malloc: *** error: incorrect checksum for freed object – object was probably modified after being freed
- What is the difference between object-oriented languages and non object-oriented languages?
- Check if input is integer type in C
- Iterate through a C array
- Meaning of Exit Code 11 in C?
- How to one hot encode several categorical variables in R
- struct has no member named
- slideToggle JQuery right to left
- printf not printing to screen
- What does this GCC error “… relocation truncated to fit…” mean?
- Exception in thread “main” java.lang.reflect.InvocationTargetException
- “webxml attribute is required” error in Maven
- How can I change the color of my prompt in zsh (different from normal text)?
- mkdir c++ function
- reversing list in Lisp
- How do I find the time complexity (Big O) of while loop?
- Why do we use NULL in strtok()?
- Java: Not a statement
- Passing a hexadecimal value into a module in Verilog
- Example of waitpid() in use?
- Can a function return two values?
- C: warning: excess elements in array initializer; near initialization for ‘xxx’ ; expects ‘char *’, but has type ‘int’
- How to know what the ‘errno’ means?
- Printf was not declared in this scope
- How to free memory from char array in C
- Can I get Unix’s pthread.h to compile in Windows?
- Initializing 2D char array in C
- Process exited with return value 3221225477
- How can I trash multiple posts at once from the front end?
- Rendering javascript in render_callback php Code
- Customized Essay Writing Service
- Software vs hardware RAID performance and cache usage
- How do high traffic sites service more than 65535 TCP connections?
- Using variables in Apache config files to reduce duplication?
- How to unify package installation tasks in ansible?
- Private IP address in public DNS