what does \n and %d mean?
Here, in C programming \n is an escape character that helps to create a new line whereas %d is a format specifier that allows to specify only Integer values.
What is an error? What are the different types of error?
There may be several errors inside a program which stops program from being executed or giving the desired result known as a bug. This type of error in a program may arise by not following proper rules given by the programming language, due to poor problem analysis or maybe due to hardware failure.
The different types of errors are: