The value of EOF symbolic constant is
A) -1
B) 1
C)error
D)-1, but vary according to compiler
Answers
Answered by
2
Answer:
d) is the answer
Please mark as brainliest answer
Answered by
0
The value of EOF symbolic constant is -1, but vary according to compiler.
Option (d)
- EOF stands for End of File, the actual value of EOF constant is -1 but this is implementation dependent.
- In C++, EOF is a macro that represents the End Of File position. Normally, this End Of File constant value is -1 but it may be any other negative value.
- A negative value specifies that End Of File has not found a valid character. On the other hand if a positive value or a zero is returned, this would imply that the macro has not reached the End Of File.
- Most function implementations use 0 for success and -1 constant for error.
To know more about C++, visit:
https://brainly.in/question/3283201
Similar questions