Meaning of Return value 1 in C -


this c program return value 1. meaning of return-value 1 , why returns 1?

void main(){ ;; ;;"hi";; ;; } 

and when use int main() getting compile time error- [error] ld returned 1 exit status

first of there nothing void main() in c. main() should return integer. returned value may in case. void main() undefined in c standard. have here.

according iso/iec 9899 5.1.2.2.1

the function called @ program startup named main. implementation declares no prototype function. shall defined return type of int ..


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -