摘要:
#include #include int ripple(int n, ...){ int i, j, k; va_list p; k = 0; j = 1; va_start(p, n); ... 阅读全文
摘要:
#include #include int ripple(int n, ...){ int i, j, k; va_list p; k = 0; j = 1; va_start(p, n); ... 阅读全文
摘要:
#include void e(int);int main(void){ int a = 3; e(a); putchar('\n'); return 0;}void e(int n){ if... 阅读全文
摘要:
#include void e(int);int main(void){ int a = 3; e(a); putchar('\n'); return 0;}void e(int n){ if... 阅读全文
摘要:
#include int *f1(void){ int x = 10; return &x;}int *f2(void){ int *ptr; *ptr = 10; return ptr;}i... 阅读全文
摘要:
#include int *f1(void){ int x = 10; return &x;}int *f2(void){ int *ptr; *ptr = 10; return ptr;}i... 阅读全文
摘要:
#include int main(void){ int a[][3] = {1, 2, 3, 4, 5, 6}; int (*ptr)[3] = a; printf("%d %d ", (*ptr)... 阅读全文
摘要:
#include int main(void){ int a[][3] = {1, 2, 3, 4, 5, 6}; int (*ptr)[3] = a; printf("%d %d ", (*ptr)... 阅读全文
摘要:
#include void foo(int[][3]);int main(void){ int a[3][3] = { {1, 2, 3}, {4, 5, 6}, {7, 8, 9} }; foo(a);... 阅读全文
摘要:
#include void foo(int[][3]);int main(void){ int a[3][3] = { {1, 2, 3}, {4, 5, 6}, {7, 8, 9} }; foo(a);... 阅读全文
摘要:
#include #include #include static jmp_buf buf;int main(void){ volatile int b = 3; if (setjmp(buf) != 0... 阅读全文
摘要:
#include #include #include static jmp_buf buf;int main(void){ volatile int b = 3; if (setjmp(buf) != 0... 阅读全文
摘要:
程序员的博客:http://www.nowamagic.net/librarys/veda/http://coolshell.cn/一个测试C语言的网站:http://stevenkobes.com/ctest.... 阅读全文
摘要:
程序员的博客:http://www.nowamagic.net/librarys/veda/http://coolshell.cn/一个测试C语言的网站:http://stevenkobes.com/ctest.... 阅读全文
摘要:
单链表排序是单链表的常见编程任务之一,也是面试中经常出现的题目。单链表排序的关键是交换算法,需要额外考虑。选择排序是比较直观的排序算法之一,这里就使用选择排序实现单链表的排序。如果需要对选择排序复习一下,传送门:... 阅读全文
摘要:
单链表排序是单链表的常见编程任务之一,也是面试中经常出现的题目。单链表排序的关键是交换算法,需要额外考虑。选择排序是比较直观的排序算法之一,这里就使用选择排序实现单链表的排序。如果需要对选择排序复习一下,传送门:... 阅读全文
摘要:
void foo(void) { unsigned int a = 6; int b = -20; (a+b > 6) ? puts("> 6") : puts("6”。原因是当表达... 阅读全文
摘要:
void foo(void) { unsigned int a = 6; int b = -20; (a+b > 6) ? puts("> 6") : puts("6”。原因是当表达... 阅读全文
摘要:
嵌入式系统经常具有要求程序员去访问某特定的内存位置的特点。在某工程中,要求设置一绝对地址为0x67a9的整型变量的值为0xaa66。编译器是一个纯粹的ANSI编译器。写代码去完成这一任务。这一问题测试你是否知道为... 阅读全文
摘要:
嵌入式系统经常具有要求程序员去访问某特定的内存位置的特点。在某工程中,要求设置一绝对地址为0x67a9的整型变量的值为0xaa66。编译器是一个纯粹的ANSI编译器。写代码去完成这一任务。这一问题测试你是否知道为... 阅读全文