I writed Random Password Generator in C. But my code erroring. What is the problem? Please send me the solutions. Thanks : I writed Random Password Generator in C. But my code erroring. What is the problem? Please send me the solutions. Thanks...



    #include <stdio.h>
    #include <stdlib.h>
    #include <time.h>
    
    int main(){enter code here
    	
    	srand((unsigned int)(time(NULL)));
    	int k_sayi,i;
    	srand((unsigned int)(time(NULL)));
    	char kucuk_harf[26]="abcdefghijklmnoprstuvwxyz";
    	char buyuk_harf[26]="ABCDEFGHIJKLMNOPRSTUVWXYZ";
    	char sayilar[11]="1234567890";
    	char ozel_karakter[13]="!'^+%&/=?_*";
    	char *pass;
    	
    	printf("Parola kac karakterli olsun?: ");
    	scanf("%d",&k_sayi);
    	
    	pass=(char *)malloc(k_sayi*sizeof(char));
    	
    	for(i=0;i<k_sayi;i++){
    		pass[i]=rand()%(sizeof kucuk_harf);
    	}
    	pass[i]='\0';
    	printf("%s",pass);
    	
    	
    	return 0;
    }

