Saved Bookmarks
| 1. |
What Is A Pure Function In Arm Terminology? |
|
Answer» Pure functions are those which RETURN a result which depends only on their arguments. They can be THOUGHT of as mathematical functions: they always return the same result if the arguments are the same. To tell the compiler that a function is pure, use the special DECLARATION keyword __pure. __pure int square(int X) { return x * x; }Pure functions are those which return a result which depends only on their arguments. They can be thought of as mathematical functions: they always return the same result if the arguments are the same. To tell the compiler that a function is pure, use the special declaration keyword __pure. |
|