ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1094. E-screen

Why are for (int i = 0; i < 80; i++) printf("%c",ans[i]) and printf ("%s\n", ans) different..?
Posted by CO2 23 Jul 2007 21:52
The first one got AC but the second one got WA.
I have initialized every char in ans to be ' '.

OH, I see...
I should let ans[80] to be '\0'...
sorry..~

Edited by author 23.07.2007 21:58