Question.1
A developer copies a config struct and modifies the copy:
SensorConfig original = {1000, 12, 3}; SensorConfig copy = original; copy.sample_rate = 500; printf("%d", original.sample_rate);
What is the output?
Select Answer
500 — modifying copy also modifies original
500
1000 — copy is an independent duplicate
1000
Undefined — struct assignment is not allowed in C
0 — the assignment only copies the first member
0