Unable to load values to pointers.... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Unable to load values to pointers....

https://code.sololearn.com/c3QY8jFE9nYl/?ref=app

5th Nov 2018, 5:04 AM
Shas3 Annabond
Shas3 Annabond - avatar
3 Answers
+ 3
Seriously, label-goto is really bad practice .. You did not allocated your pointers, so no memory is bind to them, you should malloc-free your pointer
5th Nov 2018, 6:55 AM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
+ 2
Change *a = ... by a = ... and do the same with b, that is what I meant ^^
5th Nov 2018, 9:52 AM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
0
okay... thanks I'll check and recheck :)
5th Nov 2018, 7:08 AM
Shas3 Annabond
Shas3 Annabond - avatar