Try displaying e.accno, e.c and e.balance after you've read them in with scanf.