0

Why the last line of a file is printing 2 times in the compiler screen? (N.B: Please run on PC)

https://code.sololearn.com/cMejYot8vaaD/?ref=app Take a file on pc where the code will be put. Write and save the file: Name: X Age: 40 Name: Y Age: 50 After running why does that happen? Another question : if i read an integer value starting with 0 by scanf And then I print the integer by fprintf function, then in the file the integer does not start with 0. Why?

1st Dec 2020, 6:51 PM
Samia Haque
Samia Haque - avatar
3 Respuestas
+ 1
Martin Taylor Thank you so much
2nd Dec 2020, 4:13 AM
Samia Haque
Samia Haque - avatar