Add two number solution | leetcode - 2 | harishnote

preview_player
Показать описание
Add two number solution for problem leetcode - 2 in C language.
Рекомендации по теме
Комментарии
Автор

as you write the ternary operator exactly after the end of while loop suppose l1 and as well as l2 both becomes NULL in spite of this in your code temp contains the l2 value that is actually wrong if both l1 and l2 becomes NULL in that situation program should be terminated .

sudiptaroy
welcome to shbcf.ru