Function delline deletes the line in which cursor is present and moves all the lines below it one line up.
C programming code for delline
printf("This line will be deleted when you press a key.");
printf("Line deleted successfully.");