On Dec 18, 10:28 am, Joachim Dahl <dahl.joac... at gmail.com> wrote: > My mistake seems to be that I declared > > char a, b; > > instead of > > int a, b; > > Thank you for sorting this out. > > Joachim I think you need to initialize them, too.