Hi all
can anyone tell me please why this piece of code returns me segmentation fault:
void func(int typ)
{
char **abc;
...
switch(sys)
{
case 1:
char *tmp[]={"a","b","c"
;
abc=tmp; //when reach this row "segmentation
//fault" occures
break;
case 2:
...
default:
...
}
}
can anyone tell me please why this piece of code returns me segmentation fault:
void func(int typ)
{
char **abc;
...
switch(sys)
{
case 1:
char *tmp[]={"a","b","c"
abc=tmp; //when reach this row "segmentation
//fault" occures
break;
case 2:
...
default:
...
}
}