adplus-dvertising
frame-decoration

Question

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

Posted under Python

Answer: (b).in r+ the pointer is initially placed at the beginning of the file and the pointer is at the end for w+

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the difference between r+ and w+ modes?