CJCoding With Joseph
15free / daySign inCreate account

Struct Assignment Copies Values

In C, assigning one struct to another copies all of its fields. Copy point a (which is {1, 2}) into a new point b, then change b.x to 99. Because the copy is independent, a is unchanged. Print a's fields (see Expected Output).

There is no trailing newline.

Expected Output:

1 2

= newline. No newline after the last line.

Hints2 available
Topics:
Structs
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Shift+Alt+F to format · Ctrl+Space to expand shortcuts (p, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.