linked list C | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

linked list C

why the added name and surname in my code is not printed and what should I do to fix it https://code.sololearn.com/cPhcCkl77a8d/?ref=app

10th Apr 2022, 11:18 PM
Arafet alaya
Arafet alaya - avatar
2 Answers
+ 3
You can't assign values to static char arrays. You need to use strncpy to copy the required string. https://code.sololearn.com/c6s5IFSXMXdu/?ref=app
10th Apr 2022, 11:39 PM
Ankit Shaw
+ 1
thank you sir.
10th Apr 2022, 11:50 PM
Arafet alaya
Arafet alaya - avatar