My advice is using the pointer. typedef Person* PPerson;
PPerson get_person( int)
{
if (int<0) return 0;
}
--- In [email protected], Alex yu <vit...@...> wrote:
>
> provided with a struct:
> struct Person{
> char name[10];
> unsigned int id;
> };
>
> and a function :
> Person get_person( int)
> if the check in get_person failed, what should get_person return?
> for example
> if(int <0){
> return #Oh, what should I return?
> }
>
>
> [Non-text portions of this message have been removed]
>
