printf("\nThe Result is : %s %s %s %s %s %s %s %s\n",var[0],var[1],var[2],var[3],var[4],var[5],var[6],var[7]);
while executing this i get correct result upto var[4]....
and for var[5] and var[6] im geting some garbage valuess, then for var[7] im getg my result...
whats wrong in my code.....