What can be the output of this code if the file content before execution is the string "abc"? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

What can be the output of this code if the file content before execution is the string "abc"?

void main() { char ch='a'; fstream file("data.dat", ios::app) ; file<<ch; int p=file. tellg() ; cout<<p; }

24th Sep 2018, 12:39 AM
Vaibhav
Vaibhav - avatar
1 Réponse
0
Any answer please??? 🙃
30th Sep 2018, 11:40 PM
Vaibhav
Vaibhav - avatar