摘要: (1)使用了后,可使用true和false来表示真假。(2)在循环语句中进行变量声明是C99中才有的,因此编译时显式指明 gcc -std=c99 prime.c[lujinhong@lujinhong chapter9]$ gcc prime.cprime.c: In function ‘is... 阅读全文
posted @ 2013-02-03 21:46 lujinhong 阅读(1815) 评论(0) 推荐(0) 编辑
摘要: retrun与exit()均可用于函数的返回,但return只是本函数的返回,而exit()则是整个程序的退出。#include int sum(int a, int b);int main(void){ int s; printf("test"); s=sum(2,3); printf(... 阅读全文
posted @ 2013-02-03 19:44 lujinhong 阅读(231) 评论(0) 推荐(0) 编辑