C语言 指针偏移量计算
摘要:
#include <stdio.h> struct s { int a; int b; }; int main() { struct s s1; // (struct s*)0表示0x0作为struct s首地址 // &((struct s*)0)->a代表a地址 // 因为struct s首地址 阅读全文
posted @ 2024-01-11 08:36 王景迁 阅读(213) 评论(0) 推荐(0)
posted @ 2024-01-11 08:36 王景迁 阅读(213) 评论(0) 推荐(0)
posted @ 2024-01-11 08:02 王景迁 阅读(123) 评论(0) 推荐(0)