'I created a file and stored some value there. When i opened the file in read mode and printed read(33) and printed tell() its showing as in below:

[enter image description here][1] I created a file poem.txt a stored a poem: There is freedom waiting for you, On the breezes of the sky, And you ask,"What if i fall?" Oh but my dear, What if you fly This is the poem i stored in poem.txt file. When i read the line using readline(33) and read(33), 33 is the number of bytes in the first line excluding /n, the output is coming perfectly fine. But after reading it when i try to use tell() it is showing a huge number as in the image that is 18446744073709551650.But tell() should give where the file pointer is currecntly, no? So, it shouldn't be such long number no? So, why it is coming like that? I tried many other values its coming like this only fo this value of 33.Please help [1]: https://i.stack.imgur.com/xhvPL.png



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source