How to Add x and y coordinates to create a new struct in C Programming Language ?
/*Supply two cartesian_t structs and add x and y coordinates to create a new struct*/
- struct cartesian_t add(struct cartesian_t a, struct cartesian_t b){
- struct cartesian_t coordsSum;
- coordsSum.x = (a.x) + (b.x);
- coordsSum.y = (a.y) + (b.y);
- return coordsSum;
- }