Hey folks sup!
I have a segmentation fault here:
what could be the problem??Code:char * inttobinstr(int n)
{
char *binstr;
binstr = (char*)malloc(sizeof(char)*8);
binstr = "00000001";
binstr[6]='s'; <---------this assignment gives me the error
return binstr;
}