0

Functions

Every valid C++ program has at least one function - the main() function?

21st Dec 2016, 6:47 PM
Александр Шафаренко
Александр Шафаренко - avatar
7 Réponses
+ 7
Yes.
21st Dec 2016, 6:48 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 3
Check my codes there is one which can run even without main(). Happy Coding.
10th Jan 2017, 3:22 PM
Navneet Sharma
Navneet Sharma - avatar
+ 2
yeH
21st Dec 2016, 6:51 PM
Александр Шафаренко
Александр Шафаренко - avatar
+ 1
can you really write computer software including databases with this course
21st Dec 2016, 7:45 PM
Merhai Akshay
Merhai Akshay - avatar
+ 1
Yes. It's the core code of the program and it has to have a return value. I'ts like a car can't be a car without engine, or wheels.
21st Dec 2016, 9:10 PM
Arthur Hakobyan
Arthur Hakobyan - avatar
+ 1
Technically compilers do provide some options to define a custom main function. Some engines and API's actually use this feature, for instance C/C++ programs that use the Windows API usually define WinMain as the entry point. Functionally there's no difference though. Every program needs an entry point (unless it's a library) and that entry function needs to have certain optional arguments depending on platform.
22nd Dec 2016, 1:05 AM
Thomas Stone
Thomas Stone - avatar
+ 1
Yes.the main() function is the core code of the program
26th Dec 2016, 2:31 PM
Menad Hamza
Menad Hamza - avatar