Home > Back-end >  Why did the assignment fail?
Why did the assignment fail?

Time:10-24



Why after a and I are equal, the next step of ret=1; But the left shows the Execute to evaluate?

Are there any bosses know?

CodePudding user response:

Scope problems
Ret=sushu (a);

CodePudding user response:

Sushu () return out of the return value, in the main function to a variable to receive the
No variable receiving, the return value is lost

The main function of ret and sushu ret is not the same variable, wind horses and cattle and

How to read well, about the function part, function return value, mainly is three
1 with the help of a global variable
2 function return val.
3 function pointer/reference parameter of type

With the aid of transfer data files of what are not

CodePudding user response:

Less a ret=sushu (a);
Need to ret to accept sushu function return values.
  • Related