Home > Back-end >  C language to the unknown variables are calculated
C language to the unknown variables are calculated

Time:10-09

Such as fun=x * y + 1.
Y=x - 2;
Can realize the fun=x * x * x + 1-2

CodePudding user response:

Not sure what you want to express



Try not to know

CodePudding user response:

Written order
Y=x - 2;
Fun=x * y + 1.
It is ok to

CodePudding user response:

C should not, this involves the parallel computation, the following talk nonsense,
Had seen years before, content early forgot, is roughly a scheduler, to spread out calculation for different CPU or kernel threads,
When calculating the fun=x * y + 1, this thread hangs, and generate a tag,
When another thread computing to y=x - 2; According to mark, awakens the tag thread to continue the fun=x * y + 1,

CodePudding user response:

Fun
reference 2 floor response:
written order
Y=x - 2;
Fun=x * y + 1.
It is ok to

I have a try  ,,,,,,,,,,,

CodePudding user response:

refer to the original poster You 'r e Beautiful reply:
such as fun=x * y + 1.
Y=x - 2;
Can realize the fun=x * x - 2 * x + 1

Do you want to equation? But you are too simple to this equation,
 
Int y (int x) {
Return the x - 2;
}
Int fun (int x) {
Return x * y (x) + 1;
}


  • Related