2 Function Declaration Declaration principle: If a function is defined before its being used,the declaration may be omitted; If a function is used before its definition,it must be declared in advanced. Declaration method: Return type Name parameters list ) For example: int sum(int n,float m); 函数申明可以不包含参数的名字,而只要包含函数的类型 017年4月26日12时17分 HOME 第4章函数与预处理 BACK NEXHOME2017年4月26日12时17分 第4章 函数与预处理 7 • Declaration principle: If a function is defined before its being used, the declaration may be omitted; If a function is used before its definition, it must be declared in advanced. • Declaration method: • Return type Name (parameters list ); For example: int sum(int n, float m); //函数申明可以不包含参数的名字,而只要包含函数的类型