Do this:
printf("do you want to add node at right??!\n");
scanf("%c",&ch);
while (getchar()!='\n'); //<-- eat up trailing newline chars - Reads all characters of the line until the end of line is found.
When you press enter after entering a keyboard input - there stays in the buffer a trailing newline character which the next call on scanf
reads.