Q: – Why is the main() function needed in a program?
The execution of a C program starts and ends with the main() function. Without the main() function, the computer does not know where to start to run a program.
Q: – What does the #include directive do?
The #include directive is used to include header files that contain the declarations to the functions used in your C program. In other words, the #include directive tells the C preprocessor to look into the include path to find the specified header file.
Q: – Why do you need a … Click here to continue reading.