K Append Challenge


whats wrong with this code

hello @naazsayma123
what issue u r facing?

it shows compilation error

image
u r not reading n

it still not working

image
here it should be
head=head->next;
also in while condition
it should be
head!=NULL