Home > Back-end >  Small a big question mark
Small a big question mark

Time:09-26

What does this sentence mean? Struct list * num1 (list * head)
Source:
Struct list * num1 (list * head)
{
If (a head!=NULL)//using the malloc function returns NULL if a failure here, said there was no memory space,
{
Printf (" successful build \ n ");
return head;//return head node pointer
}
The else printf (" failure \ n ");
exit(0);
}

CodePudding user response:

That is a function definition
Struct list * is the function return value
Num1 is function name
The list * the head is the function of parameter
The operation of the function body {}

CodePudding user response:

reference 1st floor qybao response:
that's function definition
Struct list * is the function return value
Num1 is function name
The list * the head is the function of parameter
{} is the operation of the function body
thank you
  • Related