Home > Back-end >  Could you tell me the return statement is what mean
Could you tell me the return statement is what mean

Time:10-28

W in the return statement is what meaning, please answer

CodePudding user response:

The ternary operator feel bad understanding is changed to the if
Don't know the ternary operator is reading a book

CodePudding user response:

Return is to return, return * xp or 0, if xp is not NULL, it returns * xp, otherwise it returns 0.

Because this function is with a long return values, to return to the calling function

CodePudding user response:

Check if xp this pointer is empty, empty 0, is not null output point value

CodePudding user response:

reference 2 building self-confidence boy reply:
return is to return, return * xp or 0, if xp is not NULL, it returns * xp, otherwise it returns 0.

Because this function is with a long return values, returned to the calling function ~

Understand understand, thank you

CodePudding user response:

green box reference 3 floor response:
check if xp this pointer is empty, empty 0, is not null output to numerical

Understand understand, thank you
  • Related