c语言
文章平均质量分 74
coolgw2015
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C语言 用汇编来看看变量和指针实现
Makefileprint:aa ./aaaa: aa.o gcc -g -o aa aa.o aa.o: aa.c gcc -g -c aa.c#include int main(原创 2015-08-07 20:27:17 · 2366 阅读 · 0 评论 -
Array & Pointer & function call practice and result
#include #include #include #define NOBADCALLS#define NROWS 3#define NCOLUMNS 5#define Arrayval(array, ncolumns, i, j) array[i * ncolumns + j] int main(int, char *[]); void f(int array[][N原创 2016-02-02 17:00:48 · 417 阅读 · 0 评论 -
C point and array practice
#include "stdio.h" #include "stdlib.h"#define SIZE 2#include "string.h"void mypri原创 2016-01-29 14:15:13 · 411 阅读 · 0 评论 -
switch case without break in C language
In C switch case senario, if you not using break key word, pay attention the logicCode example(net/bridge/br_input.c in linux kernel) forward: switch (p->state) { case BR_STATE_F原创 2015-11-23 09:42:47 · 373 阅读 · 0 评论 -
C 语言中的好基友 数组和指针之三
since we l原创 2015-08-05 09:11:00 · 436 阅读 · 0 评论 -
C 语言中的好基友 数组和指针之一
有时看见yixie原创 2015-08-04 10:52:53 · 346 阅读 · 0 评论 -
C 语言中的好基友 数组和指针之二
jfkdslajfd int abc[2][8] ={ {11,12,13}, {21,22,23}, }; printf("size of int is %d\n",sizeof(int)); printf("size of abc is %d \n",sizeof(abc)); printf("size of abc[0] is原创 2015-08-04 16:20:48 · 406 阅读 · 0 评论 -
C语言 让crash来的更猛烈些吧
有个想法,想收集一下C语言中的crash,到底会有多少种死法?原创 2015-08-06 09:07:05 · 1433 阅读 · 1 评论 -
指针随笔
指针是c的最有意思的地方,同时也是最难理解的首先是要理解“指针就是地址”这句扯淡的鬼话,正确的理解是指针也是一种变量,他也需要内存空间,当你声明的时候,也就创建了一个指针大小的空间,那么这个空间内容可以放一个地址,也就是0xa00c9s这样的玩意。其次开始理解为啥我们操作指针需要知道指针的类型,如果我们定义了一个指针变量p,假设变量p的地址是0x001,那么p+1就会变为多少取决于指针的类原创 2016-02-03 15:19:06 · 381 阅读 · 0 评论
分享