In gcc, the 'int' in main function is optional and 'return 0' is also optional...that leaves a warning but gets complied and gives output.But in one of my prg it doesnt give out put but gives error i wanna know why..So what is the condition on which we are supposed to return the value 0 to main()...