can u tell why cant we go backwards in c++ even if we use seekp() and tellp() but where has we can go backwards in turbo c++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

can u tell why cant we go backwards in c++ even if we use seekp() and tellp() but where has we can go backwards in turbo c++

25th Jul 2017, 2:00 PM
yashas.s
yashas.s - avatar
7 Answers
+ 9
Of course you can iterate an array forth and backwards.
25th Jul 2017, 2:25 PM
Hatsy Rei
Hatsy Rei - avatar
+ 8
http://www.cplusplus.com/reference/ostream/ostream/seekp/ What are you trying to imply by 'go backwards'?
25th Jul 2017, 2:06 PM
Hatsy Rei
Hatsy Rei - avatar
+ 8
'Go backwards' in the sense of? Program execution? Program output?
25th Jul 2017, 2:09 PM
Hatsy Rei
Hatsy Rei - avatar
+ 7
well thats not right. not at all. can go either way or at random..
25th Jul 2017, 2:14 PM
jay
jay - avatar
+ 5
backwards from where?
25th Jul 2017, 2:09 PM
jay
jay - avatar
0
from example an array yashas u cannot go from s-y but we can go from y--s
25th Jul 2017, 2:13 PM
yashas.s
yashas.s - avatar
- 2
means u can't go backwards in c++ correct/wrong
25th Jul 2017, 2:08 PM
yashas.s
yashas.s - avatar