c语言 06教程.ppt

c语言 06教程

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Return Statement return; // No value to return Is valid only in the body block of a void function. Causes control to leave the function and immediately return to the calling block, leaving any subsequent statements in the function body unexecuted. #include stdio.h void DisplayMessage(int); // Prototype int main() { DisplayMessage(15); // Function call printf( “Good Bye\n“ ); return 0; } void DisplayMessage(int n) { printf( “I have liked math for %d years\n“, n );

文档评论(0)

1亿VIP精品文档

相关文档