OS
pointer 的大小在同样的系统里是一致的吗,如果是,为什么lab2有 struct element * elem = malloc(sizeof(struct element)); 这样的?是不是代表着分配这个指针之后的空余空间?放置一个这么大的slot在后面?
pointer 大小是一致的,但是 pointer 指向的空间是不固定的,需要腾出空间给整个 struc element 否则会出现 err。func 里面创造的 pointer 没有被回收吗?还是说其实这个变量已经被回收了,但是 malloc 出来的内存还在?
变量被回收了,但是指向的地址还在(
=======
- func create pointer var, but the element it created in func is still exists. is this means that the pointer not exists anymore after func, but what directly do to addr will remain?
- all the value that trans in func can’t be changed, but the addr point to can directly changed.
Network
- what’s different in the last / of web index? will it be ignored?
yes, if nothing else behind, it will be ignored
给我看 makefile 啊啊啊啊啊啊啊