Friday, 30 November 2012

what is the default type of function in c


The function type is not required by C. If no function
type is declared, the type defaults to
int. However, if no type is provided, the maintainer cannot determine

if you wanted to use the default (int) or if you simply

forgot to declare a type. To avoid this confusion,always declare the function type and do not use the default.



  • How ever this facility was removed in the improved version of c i.e in c99 and later versions and it is no more valid.

No comments:

Post a Comment