logo

Crowdly

Browser

Add to Chrome

Mit ír ki? typedef struct Point {  int x;  int y;  }Point;  Point m...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Mit ír ki?

typedef struct Point {

 int x;

 int y;

 }Point;

 Point

modifyPoint(Point p) {

 p.x = 1;p.y = 1;

 printf("x: %d,

y: %d\n", p.x, p.y);

 return p;

 }

 int main() {

 Point p = {1, 2};

 p = modifyPoint(p);

 printf("x: %d,

y: %d\n", p.x, p.y);

 return 0;

 }

0%
More questions like this

Want instant access to all verified answers on moodle.ms.sapientia.ro?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome