Chinaunix首页 | 论坛 | 博客
  • 博客访问: 20038
  • 博文数量: 4
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 44
  • 用 户 组: 普通用户
  • 注册时间: 2013-04-19 12:18
个人简介

菜逼,别被fire了

文章分类

全部博文(4)

文章存档

2013年(4)

我的朋友

分类: C/C++

2013-05-17 00:35:26

E. Functions
1. to use a function you need: a function prototype; a function definition; function call.
2. scope: function scope, file scope...

F. Numeric Arrays
1. C does not check to see if you try to access an array outside of its range!!!
2. while( fscanf(....) != EOF)

G. Strings and Pointers
1. puts, fputs, putchar, fprintf, strcpy, strlen
2. sizeof(Array_name) array_name without brackets DOES NOT mean an address.
3. char *aa = "a pointer";
    char bb[] = {"an array"}; // this two is different in memory!!! aa is a pointer(stack) to const space(in global variables or program instructions), while bb a string array(holds the chars in stack);

4. Heap & Stack: 
Heap is in low addresses, grows and shrinks as memory is reserved and freed;
Stack is in high addresses, grows and shrinks as functions are called and executed.

H. Structures and Large program design
1. A structure may require more than all member's bytes; depends on the particular C compilier;
2. regesiter/auto/extern/static/typedef
3.bitwise manipulations
阅读(1120) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~