
MIT 6.S081
IAMZWH
这个作者很懒,什么都没留下…
展开
-
Prep quiz: the C programming language
#1 What is the output of the following code snippet? uint32_t v = 0xdeadbeef; printf("%02x", ((unsigned char *) &v)[0]);1) de2) ad3) be4) ef5) 00> ANSWER:#2 What is the output of the following code snippet? int64_t v = 0xdead原创 2021-08-06 09:39:35 · 152 阅读 · 0 评论 -
mit 6.S081 2020 Lec2 pointer.c
mit6.828 Lec1 pointer.c#include <stdio.h>#include <stdlib.h>void f(void) { // 对于一个数组,我们只能够做两件事: // 1.确定该数组大小[sizeof(数组名)], // 2.以及获得指向该数组下标为0的元素的指针 /* 数组名:指向该数组下标为0的元素的指针。 数组下标: 任何一个数组下标运算都等同于一个对应的指针运算。 即a[i]=*(原创 2020-10-01 15:58:38 · 161 阅读 · 0 评论