The real FUN of functions comes into play when you can build a very complex program by dividing it into smaller functions that do parts of the operations and can be reused in different parts of the program. These utility functions can also be packed together in a file(like stdio.h) and distributed among other developers, to reduce the coding effort of everyone.
Lets now discuss about the ‘function’ part in main() function. As the semester has just started, you may not have been introduced to the concept of functions in programming. In layman terms, a function is a block of code which performs a certain operation. This concept of grouping specific codes to perform some task dates back to early days of development of programming.
For a beginner, their first programming course can be quite intimidating. First of all, the whole computer system seems like a magical thing that can only be made by geniuses, so there is a general perception that computer programmers must be very smart.