What is the difference between r+ and w+ modes?
(a) no difference
(b) in r+ the pointer is initially placed at the beginning of the file and the pointer is at the end for w+
(c) in w+ the pointer is initially placed at the beginning of the file and the pointer is at the end for r+
(d) depends on the operating system
This question was addressed to me in semester exam.
Query is from Files in chapter Regular Expressions and Files of Python