I wanted to know could we use another data type like void/ float or any other before main() ?
like:- could we write void/float/long main() instead of int main()
Data type before main()
No we are not allowed to use any other data type other than int main() since the c++ compiler is designed to accept int main() which is the first loaded function in the memory.