Thanks for pointing out mistakes, Paul
I'm sorry i got result what the OP is asking for. I didnt know that this was a risky method.
And, about the main() i strongly believe i had seen somewhere in a Microsoft page where they says main can return void type also.
and, if i'm compiling a program in MSVC with void main() no compiler errors or warnings are thrown out. The standard(as per C99) suggests main should return int.
But i'm confused with the Microsoft statement and C99 standard suggestion.
Here is the MSDN link i had.
http://msdn.microsoft.com/en-us/libr...wh(VS.80).aspx





Reply With Quote