Nagaraj wrote:
Can we overload main() function?
3.6.1p2
"An implementation shall not predefine the main function. This function
shall not be overloaded. It shall have a return type of type int, but
otherwise its type is implementation defined."
3.6.1p3
"The function main shall not be used (3.2) within a program. The
linkage (3.5) of main is
implementation defined. A program that declares main to be inline or
static is illformed.
The name 'main' is not otherwise reserved"