char a[]="";
char b[]="";
Try printing out the size of those arrays and see how big they are.