Found 1 Articles for C Standard Library

How to call the main function in C program?

Dev Kumar
Updated on 26-Jun-2020 16:18:05

3K+ Views

In 'C', the "main" function is called by the operating system when the user runs the program and it is treated the same way as every function, it has a return type. Although you can call the main() function within itself and it is called recursion. Recursion is nothing but calling the same function by the function itself.How Do Recursion and Function Calling Work?You must be thinking that when the main() function calls inside main(), recursion goes on infinitely. But that is not true and it is important to know how recursion and function calling works. The function calls work ... Read More

1
Advertisements