runtime error (SIGSEGV)

why i got RTE in this code? http://ideone.com/DdEEI8
if ((char)a[i]=='10') ans+=10; What this line should do?
Topic archived. No new replies allowed.