int main represents that the function returns some integer even ‘0’ at the end of the program execution.’0’ represents the successful execution of a program int main(void) represents that the function takes NO argument.
getchar is used to get a character and putchar is used to display it. It is similar to, scanf and printf but, the main difference is that it can only be used for characters. It can be used with header file string.h.