C code to generate variable with the combination of a-z and max of 4 char
问题 I am trying to write a code that generate variable using a-z only and maximum of 4 char , that means a total of 26*26*26*26 combinations.So here is what i am doing #include<stdio.h> static char vcd_xyz[4]; static char vcd_xyz1[2]; int main() { int i,j; for(i=0;i<26;i++) { vcd_xyz[1] = 'a'+i; printf("%d generated variable is initial is = %c \n",i,vcd_xyz[1]); for(j=0;j<26;j++) { vcd_xyz[2] = 'a'+j; printf("%d generated variable is = %c \n",j,vcd_xyz[2]); //strcat(vcd_xyz[1],vcd_xyz[2]); } }