Computer Science, asked by arnomls8818, 1 year ago

Where do we write main function in a c program?

Answers

Answered by Anonymous
0
it has a return type (and in some cases accepts inputs via parameters). The only difference is that the main function is "called" by the operating system when the user runs the program.

HOPE HELPS ✌️✌️
Answered by Anonymous
2

As per C/C++ standard, main() is the starting point of any program in a hosted environment where a program uses the facilities of an operating system. But in a freestanding environment, where a program execution may take place without the benefit of an operating system, the starting point need not be main() .

Similar questions