0

How can I redifine int main()

14th Dec 2022, 7:20 AM
Abigail Augustine
2 odpowiedzi
+ 7
What is the need to redefine main() function? it is the entry point for console programs, it is meant to be uniquely identified.
14th Dec 2022, 7:31 AM
Ipang
+ 6
#define hello() main() #include <iostream> using namespace std; int hello() { cout << "Hello!"; return 0; } This works, but completely pointless and confusing for anybody who would read your code.
14th Dec 2022, 9:30 AM
Tibor Santa
Tibor Santa - avatar