P
Potatoman
struct b{//elements};
struct b* funcfoo(){
struct b* p={0};
//do something with p
return p;
}
int main(){
struct b*p=//call funcfoo
printf(*%d%s*,p->inte,p->str);
return 0;
}
///////////////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
SSSSSSEEEEEGMENTATION FAULTTTTT
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\//////////////////////////////////////////////
I am sure you know why .
struct b* funcfoo(){
struct b* p={0};
//do something with p
return p;
}
int main(){
struct b*p=//call funcfoo
printf(*%d%s*,p->inte,p->str);
return 0;
}
///////////////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
SSSSSSEEEEEGMENTATION FAULTTTTT
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\//////////////////////////////////////////////
I am sure you know why .