#include <stdio.h>

struct Position{
    double x;
    double y;
};
typedef struct Position pos;

pos Increase(pos position){
    position.x++;
    position.y++;
    return position;
}

int main() {
    pos pos1, pos2, pos3;
    pos1.x = 1;
    pos1.y = 1;

    pos2 = pos1;
    pos3 = Increase(pos2);
    printf("pos3: %g, %g", pos3.x, pos3.y);

    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: