icp/oer/courses/c-basics/sections/12-struct_enum/04-circle/content.html

4 lines
385 B
HTML

<p>Use the same structs as last time. Write a function, which given a pointer to a circle and a position, can say whether or not the point is within the cirlce.</p>
<p>Write your own enum to represent the functions result. The Point is inside the circle, when difference of the x-coordinates squared + the difference of the y coordinates squared is less than the radius squared.</p>