+ 1
assignment to astructure in C
I read in a book that it is possible to assign information from one structure to another directly with an assignment statement but the example shown causes error. i think it should be y = x; I enclose the example code you can confirm thanks https://code.sololearn.com/c8QnlwE6lQ80/?ref=app
7 Respostas
+ 2
Yes I changed line 9 to y = x; and it worked, so I think it's fine.
+ 2
Not a problem 👌
+ 1
Is line 9 correct as per that book's example?
+ 1
thanks
+ 1
"Yes I changed line 9 to y = x; and it worked, so I think it's fine"
@Ipaang I also tried that and it worked.
0
no, that's just the wrong one
0
putting y = x correctly gives 10. i wanted to know if y = x is right