Question: what is the default return data type in function?
Answer: The default return type for c language function is integer.so your fuction is taken by the compiler as returning and integer and about the void main() you cannot return a value form a function which is having a void type that's why you compiler is showing warning and is ignoring the return statement of your main.