Where do we write main function in a c program?
Answers
Answered by
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 ✌️✌️
HOPE HELPS ✌️✌️
Answered by
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
English,
6 months ago
Math,
6 months ago
English,
6 months ago
Computer Science,
1 year ago
Math,
1 year ago
Social Sciences,
1 year ago
Math,
1 year ago
Biology,
1 year ago