First of all i fixed my mistake by intializinf i, j to zero. BUT, if i do not initialize them to zero the printf function prints '0' and '92'(which according to ascii code is 'a'). Why this? Basically why it prints j as char? thanks in advance...
Code:void kratisi(char **Names, int Nseats){ // calling this function with: (Names, Nseats) int i=0, j=0, posValue; char curName[30]; printf("arxi synartisis ---- i: %d, j: %d\n", i, ); ... }