0

Why tellg is returning negative value?

I was using tellg in my program and if i am giving the output of that of that tellg it giving the negative value. https://code.sololearn.com/cvff45BaMqYr/?ref=app

1st Apr 2020, 9:14 AM
Abhishek Dimri
Abhishek Dimri - avatar
4 ответов
+ 3
Because file doesn't exist. So you can't open. That's why returned -1.
1st Apr 2020, 9:24 AM
A͢J
A͢J - avatar
+ 1
~ swim ~ now done thankx
1st Apr 2020, 2:21 PM
Abhishek Dimri
Abhishek Dimri - avatar
0
AJ #Level 20 End Day so any corrections
1st Apr 2020, 9:41 AM
Abhishek Dimri
Abhishek Dimri - avatar